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 listJan 10, 2022 05:05Yuriy 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
1Jan 10, 2022 05:0500000Error: expected "53693423709974634 ", got "53693421149974634 "stderr
2Jan 10, 2022 04:5800000Error: expected "53687926707177006 ", got "53687926681577006 "stderr
3Jan 10, 2022 05:0512,474133,126,552103,534,00002,289,664
4Jan 10, 2022 04:5812,488129,688,483102,641,0001,006,0002,273,280
5Jan 10, 2022 04:5812,501130,985,264101,764,0001,995,0002,289,664
6Jan 10, 2022 04:5812,502130,031,909101,773,0001,995,0002,273,280
7Jan 10, 2022 04:5812,503133,680,358101,780,0001,995,0002,281,472
8Jan 10, 2022 04:5812,503132,205,633102,778,000997,0002,289,664
9Jan 10, 2022 05:0512,503129,465,828101,778,0001,995,0002,289,664
10Jan 10, 2022 05:0512,506127,130,995101,804,0001,996,0002,277,376
11Jan 10, 2022 05:0512,506130,688,053102,805,000998,0002,269,184
12Jan 10, 2022 05:0512,507128,622,333101,816,0001,996,0002,531,328
13Jan 10, 2022 04:5812,507129,678,188101,812,0001,996,0002,273,280
14Jan 10, 2022 05:0512,507127,083,186102,800,0001,007,0002,289,664
15Jan 10, 2022 05:0512,516130,067,312101,888,0001,997,0002,289,664
16Jan 10, 2022 05:0512,519127,159,932101,909,0001,998,0002,281,472
17Jan 10, 2022 04:5812,522128,597,543101,935,0001,998,0002,289,664
18Jan 10, 2022 05:0512,524127,528,255101,951,0001,999,0002,273,280
19Jan 10, 2022 04:5812,524129,347,436101,951,0001,999,0002,289,664
20Jan 10, 2022 04:5812,526129,830,093101,963,0001,999,0002,273,280
21Jan 10, 2022 04:5812,755159,804,988105,866,16002,273,280
22Jan 10, 2022 04:5812,760160,730,263105,906,31502,273,280
23Jan 10, 2022 05:0512,816169,506,392106,369,25502,281,472
24Jan 10, 2022 05:0512,825166,133,005106,449,99202,277,376
25Jan 10, 2022 05:0512,828163,616,142106,474,86202,273,280
26Jan 10, 2022 04:5812,829160,713,511106,483,97302,273,280
27Jan 10, 2022 05:0512,830166,774,117106,492,33702,269,184
28Jan 10, 2022 05:0512,830166,959,567106,489,38502,273,280
29Jan 10, 2022 05:0513,039167,795,168108,224,40202,285,568