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:46Andrey LikhachevAndrey LikhachevError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Nov 6, 2026 00:48Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 6, 2026 00:48061,038,48049,339,0001,060,0002,117,632expected "224995388 ", got "27376956 "
2Nov 6, 2026 00:48061,021,23649,300,0001,051,0002,117,632expected "225002939 ", got "27349691 "
3Nov 6, 2026 00:48061,842,19050,068,0001,042,0002,117,632expected "225019364 ", got "27363044 "
4Jul 18, 2024 12:4611,689125,030,55195,021,0002,000,0002,285,568
5Jul 18, 2024 12:4611,689120,759,33595,018,0002,000,0002,285,568
6Jul 18, 2024 12:4611,715122,770,88596,231,0001,002,0002,355,200
7Jul 18, 2024 12:4611,969125,173,86799,343,00002,285,568
8Jul 18, 2024 12:4611,970122,035,84899,352,00002,359,296
9Jul 18, 2024 12:4611,975120,972,90799,390,00002,359,296
10Jul 18, 2024 12:4611,984127,478,09699,464,00002,281,472
11Jul 18, 2024 12:4611,986124,796,71298,483,0001,004,0002,363,392
12Jul 18, 2024 12:4611,988124,230,13899,498,00002,367,488
13Jul 18, 2024 12:4611,991127,630,13298,521,0001,005,0002,367,488
14Jul 18, 2024 12:4612,004127,594,49699,635,00002,371,584
15Jul 18, 2024 12:4612,027126,283,71698,828,000998,0002,285,568
16Jul 18, 2024 12:4612,153176,547,766100,870,40902,232,320
17Jul 18, 2024 12:4612,168158,874,992100,990,99002,236,416
18Jul 18, 2024 12:4612,173171,228,433101,039,29702,240,512