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 13, 2026 13:01wnwnError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 19, 2026 06:55Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2026 06:55038,637,21728,169,00002,113,536expected "45501320042254846 ", got "45209644481350867 "
2May 19, 2026 06:55035,040,33827,246,00002,113,536expected "45497435118756656 ", got "45205972362121739 "
3May 19, 2026 06:55037,899,35828,539,00002,113,536expected "45507326543770549 ", got "45215105263084566 "
4May 13, 2026 13:013,28634,573,10127,277,00002,113,536
5May 13, 2026 13:013,28834,547,24827,297,00002,113,536
6May 13, 2026 13:013,29034,583,07527,310,00002,113,536
7May 13, 2026 13:013,29134,553,18427,322,00002,113,536
8May 13, 2026 13:013,30035,637,20427,397,00002,113,536
9May 13, 2026 13:013,30436,658,11627,429,00002,113,536
10May 13, 2026 13:013,36336,243,32026,911,0001,010,0002,113,536
11May 13, 2026 13:013,44436,915,47028,589,00002,113,536
12May 13, 2026 13:013,46638,624,22528,772,00002,113,536