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 listJun 30, 2026 18:13Genos0Genos0Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 30, 2026 18:14011,451,3801,102,0001,180,0002,117,632expected "53692953928687709 ", got "107533467456995 "
2Jun 30, 2026 18:14011,352,7871,099,0001,162,0002,117,632expected "53689219598960409 ", got "107474165361988 "
3Jun 30, 2026 18:14011,438,3421,095,0001,159,0002,117,632expected "53686059680882266 ", got "107669610937032 "