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 listJan 3, 2023 21:28Hal FHal FScore: 6,688Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 3, 2023 21:286,59981,125,19452,777,0001,991,0002,285,568
2Jan 3, 2023 21:286,60783,677,36852,844,0001,994,0002,285,568
3Jan 3, 2023 21:286,61678,000,49452,917,0001,996,0002,285,568
4Jan 3, 2023 21:286,62979,563,64152,020,0003,001,0002,482,176
5Jan 3, 2023 21:286,64090,307,62352,109,0003,006,0002,482,176
6Jan 3, 2023 21:286,64075,684,80352,106,0003,006,0002,285,568
7Jan 3, 2023 21:286,66379,635,34653,291,0002,010,0002,285,568
8Jan 3, 2023 21:286,68882,806,32352,485,0003,028,0002,473,984
9Jan 3, 2023 21:286,77683,099,55753,231,0003,013,0002,285,568
10Jan 3, 2023 21:286,78483,171,51153,293,0003,016,0002,285,568
11Jan 3, 2023 21:286,890128,482,16957,183,82402,228,224
12Jan 3, 2023 21:286,91481,927,27354,365,0003,020,0002,482,176
13Jan 3, 2023 21:287,02182,682,62655,261,0003,014,0002,473,984
14Jan 3, 2023 21:287,348126,570,93760,985,58702,224,128
15Jan 3, 2023 21:287,437115,724,99761,725,59502,256,896