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 listJul 14, 2021 15:21Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 14, 2021 15:2000000Error: expected "53689933326747441 ", got "53689930766747441 "
2Jul 14, 2021 15:2000000Error: expected "53692488107566700 ", got "53692485547566700 "
3Jul 14, 2021 15:2000000Error: expected "53688346318769465 ", got "53688343758769465 "
4Jul 14, 2021 15:2113,021388,345,205106,077,0002,001,0002,260,992
5Jul 14, 2021 15:2113,022384,129,531106,083,0002,001,0002,523,136
6Jul 14, 2021 15:2113,026388,714,663108,117,00002,260,992
7Jul 14, 2021 15:2113,027381,004,026106,120,0002,002,0002,482,176
8Jul 14, 2021 15:2113,029383,521,302106,142,0002,002,0002,392,064
9Jul 14, 2021 15:2113,031386,149,906106,153,0002,002,0002,260,992
10Jul 14, 2021 15:2113,039384,300,169108,224,00002,387,968
11Jul 14, 2021 15:2113,042388,464,081107,254,000993,0002,260,992
12Jul 14, 2021 15:2113,044381,288,627107,262,0001,002,0002,523,136
13Jul 14, 2021 15:2113,270430,260,652110,144,61702,244,608
14Jul 14, 2021 15:2113,273423,739,582110,163,96602,244,608
15Jul 14, 2021 15:2113,283416,288,776110,248,45002,244,608