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 27, 2026 02:06Kevin HeaveyKevin HeaveyError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 27, 2026 02:06039,686,57325,211,0004,553,00020,480expected "53686333398545075 ", got "4411002284284656138"
2Jul 27, 2026 02:06039,414,50425,201,0004,322,00020,480expected "53691584012479782 ", got "4107846926992343558"
3Jul 27, 2026 02:06038,278,47325,883,0002,426,00020,480expected "53684983763131925 ", got "146993723392799029"