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 listAug 29, 2026 13:15Victor MerckléVictor MerckléError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 29, 2026 13:150550,858,749540,105,0001,050,0002,117,632expected "53695873200065990 ", got "8905132801 "stderr
2Aug 29, 2026 13:150585,798,315575,615,0001,116,0002,117,632expected "53693820753348687 ", got "8904883870 "stderr
3Aug 29, 2026 13:150549,791,447539,601,0001,030,0002,117,632expected "53686338974755800 ", got "8904672480 "stderr