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 listJul 18, 2024 12:16Andrey LikhachevAndrey LikhachevError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Nov 6, 2026 00:25Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 6, 2026 00:25061,073,38649,337,0001,053,0002,117,632expected "225032203 ", got "27375883 "
2Nov 6, 2026 00:25060,829,59049,081,0001,047,0002,117,632expected "225009408 ", got "27352064 "
3Nov 6, 2026 00:25061,002,77249,295,0001,007,0002,117,632expected "224990560 ", got "27354720 "
4Jul 18, 2024 12:1611,696117,555,51395,079,0002,001,0002,285,568
5Jul 18, 2024 12:1611,710117,459,20695,193,0002,004,0002,285,568
6Jul 18, 2024 12:1611,710123,918,94596,188,0001,001,0002,285,568
7Jul 18, 2024 12:1611,978122,510,14999,419,00002,375,680
8Jul 18, 2024 12:1611,980123,727,89999,430,00002,285,568
9Jul 18, 2024 12:1611,984124,175,00399,467,00002,363,392
10Jul 18, 2024 12:1611,985119,491,50999,479,00002,371,584
11Jul 18, 2024 12:1611,995128,080,81998,554,0001,005,0002,285,568
12Jul 18, 2024 12:1611,998123,271,17199,587,00002,375,680
13Jul 18, 2024 12:1611,999127,068,17098,587,0001,005,0002,281,472
14Jul 18, 2024 12:1612,003127,058,63798,617,0001,006,0002,371,584
15Jul 18, 2024 12:1612,025128,083,90797,811,0001,996,0002,359,296
16Jul 18, 2024 12:1612,088175,171,039100,334,25802,232,320
17Jul 18, 2024 12:1612,138158,233,344100,748,07202,228,224
18Jul 18, 2024 12:1612,375178,610,737102,713,45002,224,128