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 05:00GraceGraceError
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 05:0000000Error: expected "53683015342239282 ", got "53683015342173746 "
2May 31, 2024 05:0000000Error: expected "53679754211828334 ", got "53679752901108334 "
3May 31, 2024 05:0000000Error: expected "53690558280203058 ", got "53690558280137522 "
4May 31, 2024 05:0000000Error: expected "53681027770774673 ", got "53681027770709137 "
5May 31, 2024 05:0000000Error: expected "53684697087104810 ", got "53684696431744810 "
6May 31, 2024 05:0000000Error: expected "53682918163749527 ", got "53682918150642327 "
7May 31, 2024 05:005,511109,955,44145,741,19502,277,376
8May 31, 2024 05:005,513111,622,91245,758,43902,285,568
9May 31, 2024 05:005,584109,058,42346,351,32202,297,856
10May 31, 2024 05:005,588104,307,17646,377,04602,277,376
11May 31, 2024 05:005,611118,536,91646,570,97202,281,472
12May 31, 2024 05:005,653125,494,44846,917,82502,289,664