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 27, 2024 22:04Matt 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 27, 2024 22:0400000Error: Exit with code 1: Segmentation fault at address: 2416181376stderr
2May 27, 2024 22:1400000Error: expected "53690626851184475 ", got "53690632462305813 "
3May 27, 2024 22:1300000Error: expected "53690601945030469 ", got "53690613075411152 "
4May 27, 2024 22:1200000Error: Exit with code 1: Segmentation fault at address: 335609984stderr
5May 27, 2024 22:1000000Error: Exit with code 1: Segmentation fault at address: 17833988stderr
6May 27, 2024 22:0900000Error: Exit with code 1: Segmentation fault at address: 570490944stderr
7May 27, 2024 22:0800000Error: expected "53681821960697338 ", got "53681857282768005 "
8May 27, 2024 22:0600000Error: expected "53684559023931132 ", got "53684594346001799 "
9May 27, 2024 22:0500000Error: expected "53689982401101825 ", got "53690017723172492 "
10May 27, 2024 22:076,212127,559,65351,560,78502,195,456
11May 27, 2024 22:166,217118,536,13051,602,54702,203,648
12May 27, 2024 22:166,230126,291,43551,706,90702,203,648
13May 27, 2024 22:076,237124,592,65351,765,78402,187,264
14May 27, 2024 22:116,324131,082,45152,492,83902,207,744
15May 27, 2024 22:166,347121,060,98652,676,03702,183,168
16May 27, 2024 22:116,351110,198,60952,713,52902,211,840
17May 27, 2024 22:116,352114,465,69152,717,57202,199,552
18May 27, 2024 22:076,413131,875,27953,227,12102,187,264