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:08Yuriy 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:0600000Error: expected "53688372955145710 ", got "53688370395145710 "
2Jun 28, 2021 19:0812,943384,221,523106,420,0001,003,0002,260,992
3Jun 28, 2021 19:0512,944382,422,005106,431,0001,004,0002,379,776
4Jun 28, 2021 19:0812,947393,633,994107,458,00002,260,992
5Jun 28, 2021 19:0512,947386,081,242107,464,00002,387,968
6Jun 28, 2021 19:0512,952384,622,800106,501,0001,004,0002,260,992
7Jun 28, 2021 19:0512,955387,935,700106,519,0001,004,0002,260,992
8Jun 28, 2021 19:0512,955383,948,130106,524,0001,004,0002,396,160
9Jun 28, 2021 19:0512,960389,792,623106,562,0001,005,0002,523,136
10Jun 28, 2021 19:0812,966390,768,269105,626,0001,992,0002,260,992
11Jun 28, 2021 19:0512,969380,707,734106,650,000996,0002,260,992
12Jun 28, 2021 19:0812,970386,258,401106,654,000996,0002,260,992
13Jun 28, 2021 19:0512,971385,787,929107,662,00002,260,992
14Jun 28, 2021 19:0812,971387,272,649107,660,00002,260,992
15Jun 28, 2021 19:0812,973387,898,058106,683,000997,0002,260,992
16Jun 28, 2021 19:0812,974385,547,786106,689,000997,0002,523,136
17Jun 28, 2021 19:0812,974383,725,036106,691,000997,0002,260,992
18Jun 28, 2021 19:0812,974380,558,628107,688,00002,260,992
19Jun 28, 2021 19:0512,977384,773,292106,709,000997,0002,260,992
20Jun 28, 2021 19:0513,620427,889,480113,046,68802,244,608
21Jun 28, 2021 19:0813,624423,241,432113,076,12402,265,088
22Jun 28, 2021 19:0813,628436,015,454113,111,57802,244,608
23Jun 28, 2021 19:0513,629440,344,980113,120,16202,248,704
24Jun 28, 2021 19:0513,633427,453,133113,154,33702,260,992
25Jun 28, 2021 19:0813,634434,453,455113,160,87202,240,512