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 listJan 13, 2025 03:55Ian MckibbenIan MckibbenError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 13, 2025 03:5500000Error: expected "53681553185673280 ", got "57 56 57 54 48 55 56 52 51 10 54 55 49 50 55 49 SECOND 16 3762818168875726905 3546358418538629683 0 65280 IDX: 9 3762818168875726905 51 9896078660769999 9896078660769999"