Submission #399274
Source Code Expand
l = list(map(int, list(input()))) res = l[0] for i in range(1, len(l)): res += l[i] if i % 2 == 0 else -l[i] print(res)
Submission Info
Submission Time | |
---|---|
Task | B - 暗算ゲーム |
User | yumechi |
Language | Python (3.2.3) |
Score | 100 |
Code Size | 128 Byte |
Status | AC |
Exec Time | 142 ms |
Memory | 8984 KB |
Judge Result
Set Name | Sample | All | ||
---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||
Status | AC |
|
Set Name | Test Cases |
---|---|
Sample | |
All | 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 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | AC | 136 ms | 8912 KB |
sample_02.txt | AC | 139 ms | 8908 KB |
test_01.txt | AC | 135 ms | 8940 KB |
test_02.txt | AC | 140 ms | 8980 KB |
test_03.txt | AC | 138 ms | 8980 KB |
test_04.txt | AC | 139 ms | 8920 KB |
test_05.txt | AC | 140 ms | 8912 KB |
test_06.txt | AC | 139 ms | 8944 KB |
test_07.txt | AC | 139 ms | 8944 KB |
test_08.txt | AC | 142 ms | 8984 KB |
test_09.txt | AC | 139 ms | 8976 KB |
test_10.txt | AC | 140 ms | 8944 KB |
test_11.txt | AC | 137 ms | 8980 KB |
test_12.txt | AC | 140 ms | 8908 KB |