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 1, 2023 16:44Hal FHal FScore: 6,687Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2023 16:446,58281,630,96052,611,0002,023,0002,482,176
2Jan 1, 2023 16:446,62883,292,60352,010,0003,000,0002,281,472
3Jan 1, 2023 16:446,63880,911,11952,093,0003,005,0002,281,472
4Jan 1, 2023 16:446,64278,748,98352,121,0003,007,0002,281,472
5Jan 1, 2023 16:446,65077,594,04352,184,0003,010,0002,478,080
6Jan 1, 2023 16:446,65382,474,28752,207,0003,011,0002,469,888
7Jan 1, 2023 16:446,67876,862,77552,406,0003,023,0002,514,944
8Jan 1, 2023 16:446,68779,823,26854,495,0001,009,0002,486,272
9Jan 1, 2023 16:446,70287,507,88853,603,0002,022,0002,482,176
10Jan 1, 2023 16:446,70381,926,75053,613,0002,023,0002,281,472
11Jan 1, 2023 16:446,72679,862,00753,833,0001,993,0002,301,952
12Jan 1, 2023 16:446,77482,331,30253,216,0003,012,0002,281,472
13Jan 1, 2023 16:447,132137,793,43259,198,98002,228,224
14Jan 1, 2023 16:447,445117,960,49861,792,73402,224,128
15Jan 1, 2023 16:447,592129,317,08263,012,78102,232,320