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 listApr 27, 2024 03:10Steve HanSteve HanError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2024 03:0900000Error: expected "53691952436466224 ", got "53691952410840624 "
2Apr 27, 2024 03:0900000Error: expected "53691955892307479 ", got "53691955866707223 "
3Apr 27, 2024 03:1100000Error: expected "53681712896554681 ", got "53681712870440121 "
4Apr 27, 2024 03:1052,263494,130,859433,783,99802,297,856
5Apr 27, 2024 03:1052,289484,002,938433,996,73802,174,976
6Apr 27, 2024 03:1052,302486,785,481434,106,93902,301,952