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 22, 2024 17:53Steve HanSteve HanScore: 57,362Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 22, 2024 17:5557,280546,545,509475,427,72402,293,760
2Apr 22, 2024 17:5457,311538,800,146475,679,09402,297,856
3Apr 22, 2024 17:5557,313542,840,731475,697,96802,293,760
4Apr 22, 2024 17:5357,327529,376,438475,816,99402,289,664
5Apr 22, 2024 17:5557,350531,964,449476,003,56002,281,472
6Apr 22, 2024 17:5257,356533,354,179476,058,09402,289,664
7Apr 22, 2024 17:5257,362540,475,299476,107,61702,285,568
8Apr 22, 2024 17:5457,389545,544,796476,331,72702,289,664
9Apr 22, 2024 17:5357,403551,461,663476,444,89702,293,760
10Apr 22, 2024 17:5357,427559,354,178476,640,40902,289,664
11Apr 22, 2024 17:5457,432536,112,660476,684,48702,293,760
12Apr 22, 2024 17:5257,461560,231,144476,922,52102,297,856