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 listMay 3, 2026 14:22limanjun99limanjun99Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2026 14:22066,745,41843,657,0002,277,0002,490,368expected "53688823884808993 ", got "53688823719389494"
2May 3, 2026 14:22065,053,61544,702,0002,241,0002,506,752expected "53680583708855720 ", got "53680583516732374"
3May 3, 2026 14:22066,075,86643,754,0003,130,0002,498,560expected "53685907512324562 ", got "53685905155752010"