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 listMay 17, 2021 20:29Yuriy LyfenkoYuriy LyfenkoScore: 17,285Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2021 20:3317,2491,598,275,089142,165,0001,001,0002,265,088
2May 17, 2021 20:2917,2543,104,606,669143,207,00002,256,896
3May 17, 2021 20:3317,260974,551,512143,256,00002,523,136
4May 17, 2021 20:2917,2711,043,431,140141,357,0001,990,0002,265,088
5May 17, 2021 20:3317,2722,760,686,585141,367,0001,991,0002,260,992
6May 17, 2021 20:3317,2742,094,269,681141,383,0001,991,0002,519,040
7May 17, 2021 20:2917,2772,206,812,066142,401,000995,0002,256,896
8May 17, 2021 20:2917,2772,076,398,466141,395,0002,005,0002,260,992
9May 17, 2021 20:3317,2781,320,855,079140,402,0003,008,0002,260,992
10May 17, 2021 20:3317,2851,881,524,530141,473,0001,992,0002,519,040
11May 17, 2021 20:2917,3512,159,379,664143,014,0001,000,0002,527,232
12May 17, 2021 20:2917,3542,769,824,400143,035,0001,000,0002,265,088
13May 17, 2021 20:2917,3572,045,514,804142,066,0002,000,0002,519,040
14May 17, 2021 20:3317,3591,441,042,810137,126,0006,955,0002,392,064
15May 17, 2021 20:2917,3671,190,545,137142,141,0002,001,0002,527,232
16May 17, 2021 20:3317,3832,824,279,983144,279,00002,527,232
17May 17, 2021 20:3317,3881,629,855,684143,329,000995,0002,265,088
18May 17, 2021 20:2917,3902,371,473,260141,330,0003,007,0002,256,896