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 14:05Matt StuchlikMatt StuchlikScore: 10,789Success
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 14:059,962144,341,47282,683,93302,232,320
2Apr 18, 2024 14:0510,035147,627,75183,290,14302,224,128
3Apr 18, 2024 20:1010,269154,488,83285,229,28802,228,224
4Apr 18, 2024 20:1010,271151,811,03485,248,52702,224,128
5Apr 18, 2024 14:1010,286147,326,42085,376,99802,224,128
6Apr 18, 2024 14:2510,323150,380,73085,677,99702,224,128
7Apr 18, 2024 20:1010,323156,872,92185,678,19502,228,224
8Apr 18, 2024 14:1010,327157,876,33685,712,66002,232,320
9Apr 18, 2024 14:0510,329141,863,13485,728,27702,236,416
10Apr 18, 2024 14:2510,331146,752,27285,749,20302,228,224
11Apr 18, 2024 14:1010,333151,070,90785,766,32202,215,936
12Apr 18, 2024 14:2510,343151,904,98585,846,10502,228,224
13Apr 18, 2024 14:1010,349109,531,35982,898,0002,996,0002,285,568
14Apr 18, 2024 14:1010,425111,575,97982,505,0004,024,0002,338,816
15Apr 18, 2024 14:0510,734116,255,65987,092,0002,002,0002,285,568
16Apr 18, 2024 20:1010,741117,057,65888,150,0001,001,0002,486,272
17Apr 18, 2024 14:1010,770109,609,61286,381,0003,013,0002,281,472
18Apr 18, 2024 14:1010,772115,999,83686,396,0003,013,0002,285,568
19Apr 18, 2024 14:0510,775116,215,40586,419,0003,014,0002,285,568
20Apr 18, 2024 20:1010,789118,188,06787,540,0002,012,0002,285,568
21Apr 18, 2024 14:1010,797113,888,08187,606,0002,013,0002,285,568
22Apr 18, 2024 14:0510,817116,046,34587,786,0001,995,0002,285,568
23Apr 18, 2024 14:1010,820120,432,74285,819,0003,991,0002,494,464
24Apr 18, 2024 14:0510,821115,642,46586,825,0002,993,0002,482,176
25Apr 18, 2024 14:1010,823122,452,40087,838,0001,996,0002,285,568
26Apr 18, 2024 20:1010,826115,644,65786,864,0002,995,0002,285,568
27Apr 18, 2024 14:0510,827113,260,14187,865,0001,996,0002,490,368
28Apr 18, 2024 20:1010,832116,594,30987,908,0001,997,0002,285,568
29Apr 18, 2024 14:0510,849118,533,89388,047,0002,001,0002,490,368
30Apr 18, 2024 14:0510,859117,954,58788,127,0002,002,0002,482,176
31Apr 18, 2024 20:1010,861112,899,02587,142,0003,004,0002,473,984
32Apr 18, 2024 14:1010,862114,745,89088,154,0002,003,0002,486,272
33Apr 18, 2024 20:1010,865117,000,55887,173,0003,005,0002,285,568
34Apr 18, 2024 14:1010,866111,827,06089,189,0001,002,0002,490,368
35Apr 18, 2024 20:1010,874115,214,86887,243,0003,008,0002,285,568
36Apr 18, 2024 20:1010,923120,980,79387,675,0002,988,0002,486,272
37Apr 18, 2024 14:0510,950118,414,22588,885,0001,997,0002,285,568
38Apr 18, 2024 14:0510,958117,142,56483,958,0006,996,0002,285,568
39Apr 18, 2024 20:1010,988115,599,24888,195,0003,006,0002,490,368