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 31, 2024 06:37GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2024 06:3700000Error: expected "53681932743651719 ", got "53681932741091719 "
2May 31, 2024 06:3700000Error: expected "53688649339770119 ", got "53688649314170119 "
3May 31, 2024 06:377,586133,856,06862,963,61202,289,664
4May 31, 2024 06:387,590135,437,23862,998,43302,281,472
5May 31, 2024 06:387,600124,861,20463,077,83202,273,280
6May 31, 2024 06:377,632143,466,60563,343,12302,285,568
7May 31, 2024 06:387,640136,733,92563,415,39102,281,472
8May 31, 2024 06:377,658128,567,44863,560,18202,277,376
9May 31, 2024 06:387,663138,083,23963,605,38002,289,664
10May 31, 2024 06:387,668118,470,08063,647,32802,281,472
11May 31, 2024 06:387,671125,752,75263,672,08102,285,568
12May 31, 2024 06:387,673121,771,70063,689,49802,285,568
13May 31, 2024 06:387,694132,394,73863,861,75002,285,568
14May 31, 2024 06:387,694127,442,44363,862,99602,285,568