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:39Ian 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:3900000Error: expected "53685756981977043 ", got "57 51 52 56 53 48 52 55 51 10 50 49 52 50 54 53 SECOND 16 3977857376009335609 3834307332497607219 0 65280 IDX: 12 3544907071779778613 892744244 5049481142649999 5049481142649999"