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 LikhachevScore: 11,986Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 18, 2024 12:4611,689120,759,33595,018,0002,000,0002,285,568
2Jul 18, 2024 12:4611,689125,030,55195,021,0002,000,0002,285,568
3Jul 18, 2024 12:4611,715122,770,88596,231,0001,002,0002,355,200
4Jul 18, 2024 12:4611,969125,173,86799,343,00002,285,568
5Jul 18, 2024 12:4611,970122,035,84899,352,00002,359,296
6Jul 18, 2024 12:4611,975120,972,90799,390,00002,359,296
7Jul 18, 2024 12:4611,984127,478,09699,464,00002,281,472
8Jul 18, 2024 12:4611,986124,796,71298,483,0001,004,0002,363,392
9Jul 18, 2024 12:4611,988124,230,13899,498,00002,367,488
10Jul 18, 2024 12:4611,991127,630,13298,521,0001,005,0002,367,488
11Jul 18, 2024 12:4612,004127,594,49699,635,00002,371,584
12Jul 18, 2024 12:4612,027126,283,71698,828,000998,0002,285,568
13Jul 18, 2024 12:4612,153176,547,766100,870,40902,232,320
14Jul 18, 2024 12:4612,168158,874,992100,990,99002,236,416
15Jul 18, 2024 12:4612,173171,228,433101,039,29702,240,512