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 18, 2024 13:53Matt StuchlikMatt StuchlikScore: 10,780Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2024 13:5310,080149,928,35883,660,15702,232,320
2Apr 18, 2024 13:5310,086159,654,78883,711,12102,224,128
3Apr 18, 2024 13:5310,143143,738,54984,184,70102,224,128
4Apr 18, 2024 13:5310,716115,890,67386,948,0001,998,0002,285,568
5Apr 18, 2024 13:5310,743110,574,79687,164,0002,003,0002,482,176
6Apr 18, 2024 13:5310,747114,866,11286,194,0003,006,0002,285,568
7Apr 18, 2024 13:5310,780116,031,21286,459,0003,016,0002,334,720
8Apr 18, 2024 13:5310,781111,362,71086,465,0003,016,0002,277,376
9Apr 18, 2024 13:5310,818117,984,85588,796,000997,0002,486,272
10Apr 18, 2024 13:5310,820117,181,60985,819,0003,991,0002,318,336
11Apr 18, 2024 13:5310,873112,429,04788,243,0002,005,0002,486,272
12Apr 18, 2024 13:5310,881118,986,36987,305,0003,010,0002,490,368