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 listSep 1, 2023 15:31CadovvlCadovvlScore: 30,628Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 2, 2023 11:3330,578326,966,874253,800,44902,285,568
2Aug 2, 2023 11:3330,616327,272,238254,112,83702,297,856
3Sep 1, 2023 15:3130,625337,528,346254,186,63302,289,664
4Sep 1, 2023 15:3130,628323,525,065254,211,74502,285,568
5Aug 2, 2023 11:3330,636319,067,344254,275,09002,285,568
6Sep 1, 2023 15:3130,642319,532,194254,330,70102,297,856