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 listJul 20, 2023 23:01gchebanovgchebanovScore: 8,053Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2023 23:017,54389,880,84661,602,0001,009,0002,420,736
2Jul 20, 2023 23:017,57087,262,25461,835,000997,0002,412,544
3Jul 20, 2023 23:017,57388,941,11060,859,0001,995,0002,400,256
4Jul 20, 2023 23:017,57590,110,83560,880,0001,996,0002,469,888
5Jul 20, 2023 23:017,57889,639,37660,900,0001,996,0002,400,256
6Jul 20, 2023 23:017,59285,403,90561,015,0002,000,0002,408,448
7Jul 20, 2023 23:017,59890,769,57961,059,0002,001,0002,473,984
8Jul 20, 2023 23:017,63286,534,03362,343,0001,005,0002,424,832
9Jul 20, 2023 23:017,63885,900,00262,393,0001,006,0002,412,544
10Jul 20, 2023 23:018,04992,900,48465,810,000997,0002,433,024
11Jul 20, 2023 23:018,05394,200,22065,843,000997,0002,465,792
12Jul 20, 2023 23:018,07591,596,41166,021,0001,000,0002,478,080
13Jul 20, 2023 23:018,07796,739,47465,035,0002,001,0002,437,120
14Jul 20, 2023 23:018,11987,261,41167,385,00002,510,848
15Jul 20, 2023 23:018,13893,445,69266,541,0001,008,0002,478,080
16Jul 20, 2023 23:018,14294,501,54567,577,00002,400,256
17Jul 20, 2023 23:018,15091,928,58866,635,0001,009,0002,383,872
18Jul 20, 2023 23:018,19693,697,75067,027,0001,000,0002,469,888
19Jul 20, 2023 23:018,392132,359,90269,653,84302,203,648
20Jul 20, 2023 23:018,523136,864,09070,744,81302,260,992
21Jul 20, 2023 23:018,609144,592,91571,452,10002,265,088