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 30, 2024 03:01GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 30, 2024 03:0200000Error: expected "53680586569395688 ", got "53680586313395688 "
2May 30, 2024 03:026,521124,983,00754,121,30602,183,168
3May 30, 2024 03:026,523116,076,54154,144,45802,187,264
4May 30, 2024 03:026,531112,754,60054,208,04102,183,168
5May 30, 2024 03:026,540116,662,50154,284,03502,195,456
6May 30, 2024 03:016,548116,518,80154,349,51702,306,048
7May 30, 2024 03:026,584132,045,01954,647,62802,179,072
8May 30, 2024 03:026,613131,274,66754,890,15902,183,168
9May 30, 2024 03:016,629116,712,52055,021,36702,183,168
10May 30, 2024 03:016,887117,789,21857,158,29002,183,168