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 listApr 24, 2026 13:50TudyMTudyMError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 13:500516,082,812454,112,00045,011,0002,375,680expected "53689796202148688 ", got "7445558744109752352 "
2Apr 24, 2026 13:500516,411,132448,140,00051,015,0002,371,584expected "53683938100966734 ", got "17724189887356125824 "
3Apr 24, 2026 13:500516,164,788432,629,00067,941,0002,375,680expected "53684042563647302 ", got "4427604479218500085 "