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 5, 2024 15:45Steve 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
1May 5, 2024 15:4500000Error: expected "53690867040633504 ", got "42806656430836896 "stderr
2May 5, 2024 15:4718,876218,716,607156,673,22402,260,992
3May 5, 2024 15:4719,207231,981,292159,421,80302,256,896
4May 5, 2024 15:4719,346228,418,072160,574,40702,269,184
5May 5, 2024 15:4619,579223,788,725162,509,32302,265,088
6May 5, 2024 15:4619,581218,061,457162,520,23902,256,896
7May 5, 2024 15:4619,783230,071,622164,195,98502,281,472