Submission #2239839

Source Code Expand

Copy
s=scanf('%s', 'C');

ans = 0;
for i = 1:3
	if s(i) == '1'
		ans = ans + 1;
	end
end

printf('%d\n',ans);

Submission Info

Submission Time
Task ABC081A - Placing Marbles
User Hec
Language Octave (4.0.2)
Score 100
Code Size 115 Byte
Status
Exec Time 692 ms
Memory 44032 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 692 ms 44032 KB
00_example_02.txt 139 ms 9416 KB
01.txt 139 ms 9420 KB
02.txt 139 ms 9416 KB
03.txt 139 ms 9420 KB
04.txt 139 ms 9420 KB
05.txt 140 ms 9416 KB
06.txt 140 ms 9416 KB