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 30, 2022 18:16Jack FrigaardJack FrigaardScore: 5,160Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 30, 2022 18:165,10868,611,62839,365,0003,028,0002,523,136
2Dec 30, 2022 18:165,11371,285,99139,404,0003,031,0002,461,696
3Dec 30, 2022 18:165,12168,467,85339,470,0003,036,0002,461,696
4Dec 30, 2022 18:165,12870,632,43141,552,0001,013,0002,260,992
5Dec 30, 2022 18:165,13475,179,00841,600,0001,014,0002,519,040
6Dec 30, 2022 18:165,14167,506,87940,638,0002,031,0002,260,992
7Dec 30, 2022 18:165,16069,466,04239,839,0002,987,0002,523,136
8Dec 30, 2022 18:165,16074,758,23940,793,0002,039,0002,453,504
9Dec 30, 2022 18:165,16370,778,27839,862,0002,989,0002,461,696
10Dec 30, 2022 18:165,20067,728,52341,156,0002,007,0002,260,992
11Dec 30, 2022 18:165,20170,682,98340,155,0003,011,0002,461,696
12Dec 30, 2022 18:165,22165,823,49940,308,0003,023,0002,260,992
13Dec 30, 2022 18:165,322104,265,43344,174,60802,199,552
14Dec 30, 2022 18:165,341111,047,80844,331,58002,199,552
15Dec 30, 2022 18:165,378113,448,00344,637,60202,215,936