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 listJul 31, 2024 03:37Mayant MukulMayant MukulScore: 1,652,407Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2024 03:371,646,40113,724,235,75313,665,132,02602,244,608
2Jul 31, 2024 03:371,652,40713,770,641,60413,714,981,92502,256,896
3Jul 31, 2024 03:371,700,15114,177,694,10614,111,254,99602,260,992