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 29, 2024 17:21Suvomoy MaitraSuvomoy MaitraScore: 1,764,869Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 29, 2024 17:211,763,54814,693,273,94414,637,447,36902,260,992
2May 29, 2024 17:211,764,86914,721,916,92414,648,409,49202,260,992
3May 29, 2024 17:211,765,99214,731,333,36814,657,734,45602,256,896