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 listOct 2, 2026 19:18Karthik ReddyKarthik ReddyError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 2, 2026 19:190295,065,868282,465,0003,527,00020,480expected "53689557495415257 ", got "2620 4433 2606 4432 2604 4433 2611 4432 "
2Oct 2, 2026 19:190284,326,970271,779,0003,460,00020,480expected "53683473536158450 ", got "2620 4167 2605 4167 2605 4169 2605 4170 "
3Oct 2, 2026 19:190286,911,232274,134,0003,691,00020,480expected "53686854785363387 ", got "2603 4248 2586 4244 2585 4245 2584 4244 "