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 listJun 12, 2021 01:59evgenikwtevgenikwtError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 12, 2021 01:5900000Error: expected "53681287382497524 ", got "53681287356897524 "
2Jun 12, 2021 01:5928,287262,474,738232,787,0001,998,0002,260,992
3Jun 12, 2021 01:5928,297260,575,985232,865,0001,998,0002,379,776
4Jun 12, 2021 01:5928,308260,385,635232,959,0001,999,0002,375,680
5Jun 12, 2021 01:5928,310268,252,281232,974,0001,999,0002,256,896
6Jun 12, 2021 01:5928,316266,345,599234,024,0001,000,0002,383,872
7Jun 12, 2021 01:5928,316263,246,882233,024,0002,000,0002,256,896
8Jun 12, 2021 01:5928,329262,253,431234,134,0001,000,0002,469,888
9Jun 12, 2021 01:5928,355259,313,035235,349,00002,260,992
10Jun 12, 2021 01:5928,397266,282,851233,701,0001,997,0002,383,872
11Jun 12, 2021 01:5929,350302,699,234243,607,60102,256,896
12Jun 12, 2021 01:5929,366312,359,282243,740,10702,252,800
13Jun 12, 2021 01:5929,383299,099,757243,877,72102,256,896