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 24, 2023 21:00LukasLukasScore: 492,615Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 24, 2023 21:00483,4094,078,689,3814,012,291,61102,195,456
2Jul 24, 2023 21:02488,7834,121,826,3384,056,898,23702,260,992
3Jul 24, 2023 21:02490,1204,128,694,0394,067,998,38002,318,336
4Jul 24, 2023 21:00492,6154,156,024,1284,088,700,92102,199,552
5Jul 24, 2023 21:02497,1254,197,140,4604,126,136,65602,314,240
6Jul 24, 2023 21:00498,8054,199,659,2374,140,079,24102,260,992