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 listMar 4, 2025 23:29Aniruddha DebAniruddha DebScore: 9,251Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 4, 2025 23:329,229103,483,35673,581,0003,023,0002,281,472
2Mar 4, 2025 23:299,238103,192,24472,637,0004,035,0002,293,760
3Mar 4, 2025 23:299,251109,344,73871,797,0004,985,0002,347,008
4Mar 4, 2025 23:329,25198,979,35171,801,0004,986,0002,342,912
5Mar 4, 2025 23:299,25998,694,14770,861,0005,988,0002,363,392
6Mar 4, 2025 23:329,303103,482,04972,200,0005,013,0002,375,680