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 listAug 13, 2023 23:40sliceteamsliceteamScore: 8,706Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 13, 2023 23:408,66695,656,97269,933,0001,998,0002,379,776
2Aug 13, 2023 23:408,668100,866,39570,943,000999,0002,260,992
3Aug 13, 2023 23:408,670104,782,31869,962,0001,998,0002,383,872
4Aug 13, 2023 23:408,67299,908,18369,982,0001,999,0002,260,992
5Aug 13, 2023 23:408,684101,367,10671,078,0001,001,0002,371,584
6Aug 13, 2023 23:408,686100,175,11970,090,0002,002,0002,383,872
7Aug 13, 2023 23:408,68999,412,28471,118,0001,001,0002,523,136
8Aug 13, 2023 23:408,70691,143,69270,253,0002,007,0002,502,656
9Aug 13, 2023 23:408,71798,724,58771,348,0001,004,0002,260,992
10Aug 13, 2023 23:408,74699,713,05871,586,0001,008,0002,256,896
11Aug 13, 2023 23:408,77299,597,08172,807,00002,523,136
12Aug 13, 2023 23:408,776100,604,99271,840,000997,0002,260,992
13Aug 13, 2023 23:408,861128,933,19673,548,98102,265,088
14Aug 13, 2023 23:409,053139,903,99975,138,12202,265,088
15Aug 13, 2023 23:409,101155,519,41875,536,83602,273,280