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 2, 2025 08:08matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2025 08:0700000Error: expected "53685729238474556 ", got "53685729238449956 "stderr
2Jan 1, 2025 19:5923,035215,548,124188,186,0003,002,0002,314,240
3Jan 1, 2025 19:5923,036217,673,976188,195,0003,003,0002,326,528
4Jan 2, 2025 08:0823,036219,296,303190,198,0001,001,0002,326,528
5Jan 2, 2025 08:0823,038212,325,828190,218,0001,001,0002,326,528
6Jan 2, 2025 08:0823,040212,516,040190,235,0001,001,0002,453,504
7Jan 1, 2025 19:5923,062217,521,949188,411,0003,006,0002,531,328