Submission #5657870


Source Code Expand

Copy
s = list(input())
count = 0
for c in s:
    if c == '1':
        count += 1
print(count)

Submission Info

Submission Time
Task ABC081A - Placing Marbles
User MasaWorks
Language Python3 (3.4.3)
Score 100
Code Size 95 Byte
Status
Exec Time 17 ms
Memory 2940 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 00_example_01.txt, 00_example_02.txt
All 100 / 100 00_example_01.txt, 00_example_02.txt, 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt
Case Name Status Exec Time Memory
00_example_01.txt 17 ms 2940 KB
00_example_02.txt 17 ms 2940 KB
01.txt 17 ms 2940 KB
02.txt 17 ms 2940 KB
03.txt 17 ms 2940 KB
04.txt 17 ms 2940 KB
05.txt 17 ms 2940 KB
06.txt 17 ms 2940 KB