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 17:53Jack FrigaardJack FrigaardScore: 5,181Success
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 17:535,16365,671,54840,861,0001,993,0002,457,600
2Dec 30, 2022 17:535,16467,703,98240,867,0001,993,0002,260,992
3Dec 30, 2022 17:535,16664,632,14440,886,0001,994,0002,453,504
4Dec 30, 2022 17:535,16766,592,04739,892,0002,991,0002,260,992
5Dec 30, 2022 17:535,16882,298,89739,903,0002,992,0002,260,992
6Dec 30, 2022 17:535,17262,907,38440,929,0001,996,0002,461,696
7Dec 30, 2022 17:535,18166,571,40940,003,0003,000,0002,314,240
8Dec 30, 2022 17:535,18166,674,87540,005,0003,000,0002,260,992
9Dec 30, 2022 17:535,19067,688,69541,073,0002,003,0002,461,696
10Dec 30, 2022 17:535,24071,653,95642,482,0001,011,0002,260,992
11Dec 30, 2022 17:535,24569,761,55142,520,0001,012,0002,453,504
12Dec 30, 2022 17:535,27875,708,47140,821,0002,986,0002,519,040
13Dec 30, 2022 17:535,352103,310,20144,425,25202,195,456
14Dec 30, 2022 17:535,353111,590,71344,433,47502,207,744
15Dec 30, 2022 17:535,373109,187,69544,595,52302,195,456