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 listMay 28, 2024 05:26Matt StuchlikMatt StuchlikError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 28, 2024 05:2700000Error: expected "53683620270007200 ", got "53683667567566315 "
2May 28, 2024 05:3900000Error: expected "53689313246386603 ", got "53689377481507368 "
3May 28, 2024 05:3700000Error: expected "53682509239903791 ", got "53682527238598015 "
4May 28, 2024 05:3500000Error: expected "53689348674575731 ", got "53689359804956414 "
5May 28, 2024 05:3400000Error: Exit with code 1: Segmentation fault at address: 167804992stderr
6May 28, 2024 05:3300000Error: expected "53689263643456658 ", got "53689298965527325 "
7May 28, 2024 05:3100000Error: expected "53690746305829122 ", got "53690852513754565 "
8May 28, 2024 05:3000000Error: Exit with code 1: Segmentation fault at address: 1082163328stderr
9May 28, 2024 05:2900000Error: Exit with code 1: Segmentation fault at address: 335609984stderr
10May 28, 2024 05:2800000Error: Exit with code 1: Segmentation fault at address: 570490944stderr
11May 28, 2024 05:2600000Error: expected "53679665291186201 ", got "53679672926795405 "
12May 28, 2024 05:326,201126,555,54751,465,86102,187,264
13May 28, 2024 05:326,252115,419,53051,894,83902,207,744
14May 28, 2024 05:406,278127,000,09252,111,49702,199,552
15May 28, 2024 05:406,298128,031,31252,270,35402,207,744
16May 28, 2024 05:366,311118,521,19152,381,10002,187,264
17May 28, 2024 05:406,325116,197,05652,494,33802,187,264
18May 28, 2024 05:366,325111,007,69752,500,86102,195,456
19May 28, 2024 05:326,363118,635,49852,814,87502,207,744
20May 28, 2024 05:366,374135,436,43952,907,41702,203,648