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,133Success
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,11665,293,28741,452,0001,011,0002,523,136
2Dec 30, 2022 18:165,12069,787,55040,472,0002,023,0002,523,136
3Dec 30, 2022 18:165,12070,599,05240,472,0002,023,0002,523,136
4Dec 30, 2022 18:165,12265,278,83540,491,0002,024,0002,523,136
5Dec 30, 2022 18:165,12369,264,67741,512,0001,012,0002,457,600
6Dec 30, 2022 18:165,13175,400,81740,557,0002,027,0002,453,504
7Dec 30, 2022 18:165,13274,445,66541,585,0001,014,0002,523,136
8Dec 30, 2022 18:165,13364,999,86640,574,0002,028,0002,523,136
9Dec 30, 2022 18:165,179106,802,08742,986,80702,207,744
10Dec 30, 2022 18:165,189128,391,81343,070,55402,203,648
11Dec 30, 2022 18:165,19366,688,69741,101,0002,004,0002,523,136
12Dec 30, 2022 18:165,195116,008,59243,117,80702,215,936
13Dec 30, 2022 18:165,21366,126,24340,253,0003,019,0002,523,136
14Dec 30, 2022 18:165,27870,566,17940,822,0002,987,0002,523,136
15Dec 30, 2022 18:165,40669,391,34743,869,000997,0002,523,136