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 27, 2026 09:58wnwnError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2026 09:58046,522,19828,443,0001,015,0002,473,984expected "53688672660864478 ", got "53688672660859148 "
2Apr 27, 2026 09:583,42048,078,42727,378,0001,014,0002,482,176
3Apr 27, 2026 09:583,44845,374,71627,599,0001,022,0002,490,368
4Apr 27, 2026 09:583,45052,431,79227,615,0001,022,0002,490,368
5Apr 27, 2026 09:583,46045,923,88626,742,0001,980,0002,490,368
6Apr 27, 2026 09:583,48345,662,47526,917,0001,993,0002,486,272
7Apr 27, 2026 09:583,61046,548,37127,966,0001,997,0002,482,176
8Apr 27, 2026 09:583,64247,538,34929,223,0001,007,0002,482,176
9Apr 27, 2026 09:583,65446,162,73929,324,0001,011,0002,482,176