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 listDec 11, 2024 20:25MatthiasMatthiasScore: 8,490Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 11, 2024 20:258,45595,411,97568,169,0002,004,0002,285,568
2Dec 11, 2024 20:258,46694,119,77768,264,0002,007,0002,285,568
3Dec 11, 2024 20:258,47095,233,14669,300,0001,004,0002,285,568
4Dec 11, 2024 20:258,47898,000,22868,356,0002,010,0002,285,568
5Dec 11, 2024 20:258,47994,494,23969,368,0001,005,0002,387,968
6Dec 11, 2024 20:258,47997,086,92169,371,0001,005,0002,285,568
7Dec 11, 2024 20:258,48092,546,21069,380,0001,005,0002,367,488
8Dec 11, 2024 20:258,48393,617,32968,402,0002,011,0002,265,088
9Dec 11, 2024 20:258,48492,897,03869,412,0001,005,0002,519,040
10Dec 11, 2024 20:258,48593,306,27670,424,00002,285,568
11Dec 11, 2024 20:258,485100,659,99070,423,00002,523,136
12Dec 11, 2024 20:258,48798,992,59269,440,0001,006,0002,285,568
13Dec 11, 2024 20:258,48793,025,15069,433,0001,006,0002,265,088
14Dec 11, 2024 20:258,48892,505,56269,446,0001,006,0002,269,184
15Dec 11, 2024 20:258,48995,304,89570,456,00002,285,568
16Dec 11, 2024 20:258,49095,646,15070,465,00002,523,136
17Dec 11, 2024 20:258,49197,382,90669,466,0001,006,0002,285,568
18Dec 11, 2024 20:258,49192,634,93270,472,00002,285,568
19Dec 11, 2024 20:258,49394,150,92769,484,0001,007,0002,285,568
20Dec 11, 2024 20:258,49397,529,12569,488,0001,007,0002,285,568
21Dec 11, 2024 20:258,49396,905,27069,482,0001,006,0002,277,376
22Dec 11, 2024 20:258,500101,420,33869,544,0001,007,0002,285,568
23Dec 11, 2024 20:258,50295,378,18569,561,0001,008,0002,285,568
24Dec 11, 2024 20:258,50398,043,86769,563,0001,008,0002,523,136
25Dec 11, 2024 20:258,517101,549,12369,686,0001,009,0002,273,280
26Dec 11, 2024 20:258,53199,325,80869,807,000997,0002,285,568
27Dec 11, 2024 20:258,64397,098,03569,743,0001,992,0002,269,184
28Dec 11, 2024 20:258,65198,610,56370,804,000997,0002,383,872
29Dec 11, 2024 20:258,654100,029,26170,834,000997,0002,285,568
30Dec 11, 2024 20:258,705101,655,51569,243,0003,010,0002,527,232