Submission #123014
Source Code Expand
a = input() b = a.split() n = int(b[0]) k = int(b[1]) c = input() c = c.split() for i in range(n): c[i] = int(c[i]) c = sorted(c) c = c.reverse() score = 0 for j in range(k): score = score + c[j]/(2^(k-j)) score = str(score) print(score)
Submission Info
Submission Time | |
---|---|
Task | C - AtCoderプログラミング講座 |
User | toshibablack |
Language | Python (3.2.3) |
Score | 0 |
Code Size | 269 Byte |
Status | RE |
Exec Time | 138 ms |
Memory | 8436 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 0 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 00_sample_04.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt, test_13.txt, test_14.txt, test_15.txt, test_16.txt, test_17.txt, test_18.txt, test_19.txt, test_20.txt, test_21.txt, test_22.txt, test_23.txt, test_24.txt, test_25.txt, test_26.txt, test_27.txt, test_28.txt, test_29.txt, test_30.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_01.txt | RE | 133 ms | 8308 KB |
00_sample_02.txt | RE | 130 ms | 8308 KB |
00_sample_03.txt | RE | 136 ms | 8308 KB |
00_sample_04.txt | RE | 135 ms | 8308 KB |
test_01.txt | RE | 132 ms | 8304 KB |
test_02.txt | RE | 134 ms | 8312 KB |
test_03.txt | RE | 133 ms | 8296 KB |
test_04.txt | RE | 133 ms | 8304 KB |
test_05.txt | RE | 132 ms | 8432 KB |
test_06.txt | RE | 133 ms | 8308 KB |
test_07.txt | RE | 132 ms | 8308 KB |
test_08.txt | RE | 136 ms | 8436 KB |
test_09.txt | RE | 134 ms | 8304 KB |
test_10.txt | RE | 137 ms | 8412 KB |
test_11.txt | RE | 136 ms | 8292 KB |
test_12.txt | RE | 136 ms | 8432 KB |
test_13.txt | RE | 134 ms | 8308 KB |
test_14.txt | RE | 134 ms | 8308 KB |
test_15.txt | RE | 136 ms | 8432 KB |
test_16.txt | RE | 133 ms | 8308 KB |
test_17.txt | RE | 136 ms | 8304 KB |
test_18.txt | RE | 135 ms | 8276 KB |
test_19.txt | RE | 132 ms | 8308 KB |
test_20.txt | RE | 134 ms | 8424 KB |
test_21.txt | RE | 138 ms | 8308 KB |
test_22.txt | RE | 133 ms | 8424 KB |
test_23.txt | RE | 135 ms | 8424 KB |
test_24.txt | RE | 136 ms | 8304 KB |
test_25.txt | RE | 134 ms | 8284 KB |
test_26.txt | RE | 137 ms | 8268 KB |
test_27.txt | RE | 134 ms | 8348 KB |
test_28.txt | RE | 135 ms | 8304 KB |
test_29.txt | RE | 136 ms | 8268 KB |
test_30.txt | RE | 137 ms | 8304 KB |