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 listAug 31, 2023 17:15vladnovikov93vladnovikov93Score: 187,206Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 31, 2023 17:15186,1041,624,324,2511,544,661,43902,236,416
2Aug 31, 2023 17:15187,2061,621,623,5861,553,809,99102,228,224
3Aug 31, 2023 17:15196,1471,685,383,2201,628,022,59002,248,704