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 listFeb 26, 2024 19:22Ryan Chung Yi ShengRyan Chung Yi ShengScore: 52,790Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 26, 2024 19:1452,728501,037,336437,640,08902,301,952
2Feb 26, 2024 19:2252,764492,054,367437,943,70402,301,952
3Feb 26, 2024 19:1452,781499,321,494438,084,37802,293,760
4Feb 26, 2024 19:2252,790494,009,147438,160,60102,293,760
5Feb 26, 2024 19:1452,803497,766,212438,264,06702,285,568
6Feb 26, 2024 19:2252,922507,772,777439,248,78002,301,952