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 11, 2026 20:51boop34boop34Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 11, 2026 20:510150,517,582136,748,0004,043,0002,121,728expected "53695631332889707 ", got "263267593 "stderr
2Jul 11, 2026 20:510151,141,801136,756,0004,052,0002,121,728expected "53694992941409927 ", got "2061526868 "stderr
3Jul 11, 2026 20:510150,416,373137,597,0003,038,0002,121,728expected "53687242015453103 ", got "423734008 "stderr