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 18: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
1Jun 28, 2021 18:0800000Error: expected "53690109754668880 ", got "53689997833304656 "
2Jun 28, 2021 18:0700000Error: expected "53687411873301776 ", got "53687371622499088 "
3Jun 28, 2021 18:0700000Error: expected "53686343222236034 ", got "53686285391171202 "
4Jun 28, 2021 18:0600000Error: expected "53680698969276649 ", got "53680698943676649 "
5Jun 28, 2021 18:0613,211388,102,055108,655,000996,0002,260,992
6Jun 28, 2021 18:0613,215387,165,996108,690,000997,0002,387,968
7Jun 28, 2021 18:0613,216389,572,258109,693,00002,260,992
8Jun 28, 2021 18:0613,218386,716,565108,710,000997,0002,260,992
9Jun 28, 2021 18:0613,221385,909,427108,739,000997,0002,260,992
10Jun 28, 2021 18:0613,222385,595,337107,745,0001,995,0002,260,992
11Jun 28, 2021 18:0613,228387,693,451108,793,000998,0002,400,256
12Jun 28, 2021 18:0613,230387,466,600107,809,0001,996,0002,523,136
13Jun 28, 2021 18:0613,240389,376,035108,893,000999,0002,256,896
14Jun 28, 2021 18:0913,355391,270,324108,848,0001,997,0002,260,992
15Jun 28, 2021 18:0513,356389,140,009109,853,000998,0002,260,992
16Jun 28, 2021 19:2213,363389,467,301109,918,000999,0002,260,992
17Jun 28, 2021 18:0513,365385,498,395108,928,0001,998,0002,260,992
18Jun 28, 2021 18:0513,365386,735,002108,931,0001,998,0002,260,992
19Jun 28, 2021 18:0913,369392,566,335108,966,0001,999,0002,260,992
20Jun 28, 2021 18:0913,369389,156,872108,967,0001,999,0002,383,872
21Jun 28, 2021 19:2213,369391,017,001108,961,0001,999,0002,260,992
22Jun 28, 2021 18:0913,370384,728,647108,972,0001,999,0002,523,136
23Jun 28, 2021 18:0913,371387,760,501109,979,000999,0002,260,992
24Jun 28, 2021 18:0513,371387,232,132109,978,000999,0002,260,992
25Jun 28, 2021 19:2213,371388,739,742108,980,0001,999,0002,523,136
26Jun 28, 2021 19:2213,372388,719,933109,986,000999,0002,260,992
27Jun 28, 2021 19:2213,373386,387,653108,996,0001,999,0002,523,136
28Jun 28, 2021 18:0513,373388,688,484108,999,0001,999,0002,523,136
29Jun 28, 2021 18:0913,375390,401,944110,011,0001,000,0002,260,992
30Jun 28, 2021 18:0913,375383,308,929109,016,0002,000,0002,523,136
31Jun 28, 2021 18:0513,377385,284,496109,028,0002,000,0002,396,160
32Jun 28, 2021 19:2213,378386,301,540109,041,0002,000,0002,260,992
33Jun 28, 2021 18:0913,379384,652,406109,047,0002,000,0002,260,992
34Jun 28, 2021 18:0513,379388,622,763110,042,0001,000,0002,523,136
35Jun 28, 2021 18:0913,384386,122,103110,086,0001,000,0002,260,992
36Jun 28, 2021 19:2213,386386,711,063110,103,0001,000,0002,260,992
37Jun 28, 2021 19:2213,391387,044,550109,140,0002,002,0002,260,992
38Jun 28, 2021 18:0513,394386,971,340111,174,00002,260,992
39Jun 28, 2021 18:0513,395386,418,710109,174,0002,003,0002,260,992
40Jun 28, 2021 19:2213,397384,379,421111,196,00002,265,088
41Jun 28, 2021 18:0613,514424,817,226112,169,87402,244,608
42Jun 28, 2021 18:0613,516425,310,482112,186,21702,244,608
43Jun 28, 2021 18:0613,520423,089,072112,214,67102,281,472
44Jun 28, 2021 18:0913,574415,679,174112,667,37102,260,992
45Jun 28, 2021 19:2213,576418,935,110112,681,05702,265,088
46Jun 28, 2021 19:2213,577422,623,459112,688,99102,240,512
47Jun 28, 2021 19:2213,580427,773,136112,713,35902,273,280
48Jun 28, 2021 18:0513,581416,524,292112,725,94102,265,088
49Jun 28, 2021 18:0913,583419,030,051112,735,60002,265,088
50Jun 28, 2021 18:0513,585415,266,551112,753,11502,260,992
51Jun 28, 2021 18:0913,612427,058,967112,980,74002,244,608
52Jun 28, 2021 18:0513,620419,609,019113,043,78802,265,088