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 28, 2021 19:25Yuriy 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
1Jun 28, 2021 19:2700000Error: expected "53689566951871062 ", got "53689564391871062 "
2Jun 28, 2021 19:2600000Error: expected "53689569652072385 ", got "53689567092072385 "
3Jun 30, 2021 20:2613,185386,731,500108,429,0001,003,0002,396,160
4Jun 30, 2021 20:2613,186387,665,024108,436,0001,004,0002,392,064
5Jun 30, 2021 20:2613,197388,119,995108,530,0001,004,0002,260,992
6Jun 30, 2021 20:2613,200384,578,092107,570,0001,992,0002,400,256
7Jun 30, 2021 20:2613,201389,988,766107,578,0001,992,0002,392,064
8Jun 30, 2021 20:2613,207386,028,955109,620,00002,260,992
9Jun 30, 2021 20:2613,212391,589,166108,660,000996,0002,260,992
10Jun 30, 2021 20:2613,215388,410,806107,691,0001,994,0002,260,992
11Jun 30, 2021 20:2613,219390,875,738108,722,000997,0002,387,968
12Jun 30, 2021 22:0013,402383,688,370111,238,00002,260,992
13Jun 30, 2021 22:0013,405385,923,850110,257,0001,002,0002,256,896
14Jun 30, 2021 22:0013,407387,040,759111,276,00002,260,992
15Jun 30, 2021 22:0013,411384,055,181110,307,0001,002,0002,260,992
16Jun 30, 2021 22:0013,413382,725,955110,328,0001,002,0002,387,968
17Jun 30, 2021 22:0013,419379,117,142110,375,0001,003,0002,260,992
18Jun 30, 2021 22:0013,424394,140,814110,419,0001,003,0002,523,136
19Jun 30, 2021 22:0013,430390,348,236110,464,0001,004,0002,523,136
20Jun 30, 2021 22:0013,433393,464,101109,507,0001,991,0002,260,992
21Jun 28, 2021 19:2713,477413,676,050111,861,59202,265,088
22Jun 28, 2021 19:2713,479422,932,496111,878,35302,265,088
23Jun 28, 2021 19:2713,481420,829,420111,890,42402,269,184
24Jun 30, 2021 20:2613,484415,819,945111,920,96902,269,184
25Jul 3, 2021 12:5213,489421,227,145111,960,89002,240,512
26Jul 3, 2021 12:5213,491414,767,500111,973,80102,240,512
27Jun 30, 2021 03:1513,491411,168,704111,976,18802,240,512
28Jun 30, 2021 03:1513,491424,987,221111,973,18902,273,280
29Jul 3, 2021 12:5213,492420,817,057111,982,10802,269,184
30Jun 30, 2021 20:2613,493440,354,340111,994,97602,277,376
31Jun 30, 2021 20:2613,494418,075,924112,002,62202,269,184
32Jun 30, 2021 03:1513,502427,858,226112,069,67402,269,184
33Jun 28, 2021 19:2513,511439,691,984112,139,08702,273,280
34Jun 28, 2021 19:2513,518428,425,535112,196,28402,240,512
35Jun 28, 2021 19:2513,525417,826,050112,259,29002,265,088
36Jun 28, 2021 19:2513,571393,791,492111,642,000996,0002,260,992
37Jun 28, 2021 19:2513,574389,841,350111,668,000997,0002,396,160
38Jun 28, 2021 19:2513,575392,909,602111,673,000997,0002,260,992
39Jun 28, 2021 19:2513,580388,537,719110,716,0001,994,0002,260,992
40Jun 28, 2021 19:2513,587389,742,795110,774,0001,995,0002,392,064
41Jun 28, 2021 19:2513,588389,706,080110,787,0001,996,0002,506,752
42Jun 28, 2021 19:2513,588390,067,550111,786,000998,0002,260,992
43Jun 28, 2021 19:2513,594389,049,077110,835,0001,997,0002,260,992
44Jun 28, 2021 19:2513,598389,168,281111,868,000998,0002,392,064
45Jun 30, 2021 22:0013,697435,716,485113,682,66302,240,512
46Jun 30, 2021 22:0013,700444,943,063113,708,51902,240,512
47Jun 30, 2021 22:0013,704432,920,373113,742,64502,269,184