Parse integers Sergey Svistunov

Compute the sum of integers read from STDIN as fast as possible.

Input: 50 000 000 lines, each containing one integer in the range [0; 2147483647].

629871117
2024562523
1372689083
1021777120
2111176472

Output: The uint64 sum of all numbers, printed as a decimal string.

Note: Integer overflow is expected – use a 64-bit accumulator.

Back to listOct 14, 2024 11:15Joad NacerJoad NacerError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 14, 2024 11:1900000Error: No answer to stdout. Died or killed?stderr
2Oct 14, 2024 11:1700000Error: No answer to stdout. Died or killed?stderr
3Oct 14, 2024 11:1500000Error: expected "53681064320362612 ", got "53681079263939443 "stderr
4Oct 14, 2024 11:1600000Error: expected "53692223407096556 ", got "53692222424712982 "stderr
5Oct 14, 2024 11:1700000Error: expected "53689737355837812 ", got "53689743112084799 "stderr
6Oct 14, 2024 11:1600000Error: expected "53686744732731929 ", got "53686749112784932 "stderr
7Oct 14, 2024 11:174,25260,560,61333,277,0002,016,0002,306,048
8Oct 14, 2024 11:174,26256,793,14033,354,0002,021,0002,314,240
9Oct 14, 2024 11:154,26959,472,47432,395,0003,037,0002,297,856
10Oct 14, 2024 11:174,27060,843,72233,415,0002,025,0002,273,280
11Oct 14, 2024 11:154,27256,327,60934,446,0001,013,0002,269,184
12Oct 14, 2024 11:194,28662,638,20432,528,0003,049,0002,338,816
13Oct 14, 2024 11:154,31657,790,93832,839,0002,985,0002,392,064
14Oct 14, 2024 11:174,31658,879,71934,827,000995,0002,531,328
15Oct 14, 2024 11:174,31761,821,53933,844,0001,990,0002,535,424
16Oct 14, 2024 11:154,32861,121,17833,926,0001,995,0002,301,952
17Oct 14, 2024 11:154,34358,397,00435,043,0001,001,0002,392,064
18Oct 14, 2024 11:174,34356,017,98735,047,0001,001,0002,531,328
19Oct 14, 2024 11:194,35860,631,87335,164,0001,004,0002,301,952
20Oct 14, 2024 11:194,36457,998,10434,208,0002,012,0002,531,328
21Oct 14, 2024 11:194,37656,126,26235,310,0001,008,0002,293,760
22Oct 14, 2024 11:154,41963,611,43936,677,00002,269,184
23Oct 14, 2024 11:154,44161,590,85735,863,000996,0002,301,952
24Oct 14, 2024 11:174,45456,687,54935,970,000999,0002,297,856
25Oct 14, 2024 11:194,47867,895,03435,162,0002,009,0002,273,280
26Oct 14, 2024 11:194,48253,703,54135,190,0002,010,0002,297,856
27Oct 14, 2024 11:154,49663,335,94835,302,0002,017,0002,273,280
28Oct 14, 2024 11:194,49662,361,47935,298,0002,017,0002,535,424
29Oct 14, 2024 11:194,50659,398,25736,393,0001,010,0002,310,144
30Oct 14, 2024 11:194,51960,847,77435,477,0002,027,0002,306,048
31Oct 14, 2024 11:174,52464,059,17835,519,0002,029,0002,306,048
32Oct 14, 2024 11:154,58763,424,69135,069,0003,005,0002,306,048
33Oct 14, 2024 11:154,60765,043,95136,230,0002,012,0002,306,048
34Oct 14, 2024 11:154,73058,826,53138,250,0001,006,0002,301,952
35Oct 14, 2024 11:174,74659,999,16838,381,0001,010,0002,531,328
36Oct 14, 2024 11:154,91964,284,81239,830,000995,0002,301,952