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 15:21Jack FrigaardJack FrigaardScore: 5,164Success
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 15:215,11868,805,66940,457,0002,022,0002,338,816
2Dec 30, 2022 15:215,11865,372,59940,459,0002,022,0002,293,760
3Dec 30, 2022 15:215,12465,146,06141,517,0001,012,0002,285,568
4Dec 30, 2022 15:215,12567,871,44542,537,00002,265,088
5Dec 30, 2022 15:215,13075,157,97840,554,0002,027,0002,285,568
6Dec 30, 2022 15:215,14169,507,30840,639,0002,031,0002,301,952
7Dec 30, 2022 15:215,15769,384,92539,816,0002,986,0002,293,760
8Dec 30, 2022 15:215,16469,778,20439,870,0002,990,0002,273,280
9Dec 30, 2022 15:215,17067,249,41838,917,0003,991,0002,285,568
10Dec 30, 2022 15:215,24671,505,25941,517,0002,025,0002,285,568
11Dec 30, 2022 15:215,28070,835,86640,834,0002,987,0002,289,664
12Dec 30, 2022 15:215,28866,285,70941,899,0001,995,0002,285,568
13Dec 30, 2022 15:215,299107,939,33143,981,26702,297,856
14Dec 30, 2022 15:215,307115,843,18044,051,16902,293,760
15Dec 30, 2022 15:215,329105,722,20344,231,90102,297,856