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 4, 2021 22:32Yuriy 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
1May 4, 2021 22:3200000Error: expected "53693368087659710 ", got "53693367250785659 "
2May 4, 2021 22:3200000Wrong answer: expected: 53688980102173267 got: 53688979888305861
3May 4, 2021 22:3123,804224,672,092195,568,0002,005,0002,260,992
4May 4, 2021 22:3223,806226,112,172196,584,0001,002,0002,260,992
5May 4, 2021 22:3223,827224,370,738195,766,0001,997,0002,260,992
6May 4, 2021 22:3123,827227,691,476195,769,0001,997,0002,400,256
7May 4, 2021 22:3123,827225,739,721196,763,000998,0002,260,992
8May 4, 2021 22:3223,829227,596,000195,780,0001,997,0002,392,064
9May 4, 2021 22:3223,830229,294,187196,788,000998,0002,260,992
10May 4, 2021 22:3223,831224,319,285196,802,000998,0002,387,968
11May 4, 2021 22:3123,833222,080,433194,814,0002,997,0002,379,776
12May 4, 2021 22:3123,840227,017,736195,875,0001,998,0002,260,992
13May 4, 2021 22:3223,841225,529,788196,882,000999,0002,392,064
14May 4, 2021 22:3223,843228,187,693195,896,0001,998,0002,260,992
15May 4, 2021 22:3223,846225,335,964195,923,0001,999,0002,260,992
16May 4, 2021 22:3223,847228,718,684196,930,000999,0002,260,992
17May 4, 2021 22:3123,847227,834,972195,928,0001,999,0002,260,992
18May 4, 2021 22:3223,848229,891,338195,943,0001,999,0002,392,064
19May 4, 2021 22:3123,851225,297,093195,961,0001,999,0002,260,992
20May 4, 2021 22:3223,851222,334,414196,961,000999,0002,260,992
21May 4, 2021 22:3223,987227,571,680197,091,0002,000,0002,392,064
22May 4, 2021 22:3223,990231,121,669196,115,0003,001,0002,396,160
23May 4, 2021 22:3223,991229,701,480197,127,0002,001,0002,260,992
24May 4, 2021 22:3224,012221,619,657199,298,00002,260,992
25May 4, 2021 22:3224,027225,943,624197,421,0002,004,0002,260,992
26May 4, 2021 22:3224,051226,194,193198,622,0001,003,0002,506,752
27May 4, 2021 22:3124,272232,549,827200,462,000997,0002,260,992
28May 4, 2021 22:3124,484232,360,995202,214,0001,001,0002,260,992
29May 4, 2021 22:3224,497230,438,801203,325,00002,260,992