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 17:02Yuriy 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 17:0500000Error: expected "53680375017422000 ", got "53680375017166000 "
2Jun 28, 2021 17:0400000Error: expected "53692235885634483 ", got "53692233325634483 "
3Jun 28, 2021 17:0400000Error: expected "53688205924639249 ", got "53688205896453393 "
4Jun 28, 2021 17:0400000Error: expected "53680464438627674 ", got "53680382965173850 "
5Jun 28, 2021 17:0300000Error: expected "53690691193924097 ", got "53690589637924097 "
6Jun 28, 2021 17:0100000Error: expected "53682797245527203 ", got "53682745918420899 "
7Jun 28, 2021 17:0100000Error: expected "53679978306907933 ", got "53109592389199645 "
8Jun 28, 2021 17:0313,272386,326,678109,157,0001,001,0002,392,064
9Jun 28, 2021 17:0313,272380,401,061109,153,0001,001,0002,265,088
10Jun 28, 2021 17:0313,276385,786,904109,191,0001,001,0002,387,968
11Jun 28, 2021 17:0313,276381,813,080109,191,0001,001,0002,260,992
12Jun 28, 2021 17:0313,277386,628,664110,200,00002,260,992
13Jun 28, 2021 17:0313,277380,549,532109,195,0001,001,0002,260,992
14Jun 28, 2021 17:0313,278383,231,212109,205,0001,001,0002,260,992
15Jun 28, 2021 17:0313,283387,988,634109,255,000993,0002,260,992
16Jun 28, 2021 17:0313,297381,306,787109,361,0001,003,0002,260,992
17Jun 28, 2021 17:0513,397384,842,122110,192,0001,001,0002,265,088
18Jun 28, 2021 17:0113,399389,850,931110,210,0001,001,0002,260,992
19Jun 28, 2021 17:0213,401385,981,587110,224,0001,002,0002,260,992
20Jun 28, 2021 17:0513,402385,753,507110,232,0001,002,0002,260,992
21Jun 28, 2021 17:0113,403385,689,319111,246,00002,260,992
22Jun 28, 2021 17:0513,403382,177,289110,244,0001,002,0002,260,992
23Jun 28, 2021 17:0113,404383,167,670111,257,00002,506,752
24Jun 28, 2021 17:0613,406382,066,117110,270,0001,002,0002,260,992
25Jun 28, 2021 17:0613,407385,469,876110,280,0001,002,0002,396,160
26Jun 28, 2021 17:0613,407388,802,254111,276,00002,260,992
27Jun 28, 2021 17:0213,408382,562,223110,282,0001,002,0002,396,160
28Jun 28, 2021 17:0613,409386,606,288111,293,00002,260,992
29Jun 28, 2021 17:0513,409387,028,514109,305,0001,987,0002,260,992
30Jun 28, 2021 17:0513,409385,272,057110,290,0001,002,0002,527,232
31Jun 28, 2021 17:0513,409388,959,392111,294,00002,383,872
32Jun 28, 2021 17:0613,410384,227,914110,302,0001,002,0002,260,992
33Jun 28, 2021 17:0113,410382,647,468110,303,0001,002,0002,523,136
34Jun 28, 2021 17:0113,412388,192,397110,316,0001,002,0002,527,232
35Jun 28, 2021 17:0213,413390,869,825111,329,00002,523,136
36Jun 28, 2021 17:0113,413385,783,778110,322,0001,002,0002,260,992
37Jun 28, 2021 17:0213,414386,070,757110,330,0001,003,0002,260,992
38Jun 28, 2021 17:0113,414389,028,126111,340,00002,260,992
39Jun 28, 2021 17:0113,417387,224,771110,362,0001,003,0002,260,992
40Jun 28, 2021 17:0513,418391,298,910109,381,0001,988,0002,260,992
41Jun 28, 2021 17:0213,418385,660,866111,371,00002,392,064
42Jun 28, 2021 17:0213,418386,380,194110,369,0001,003,0002,260,992
43Jun 28, 2021 17:0513,419383,644,711110,371,0001,003,0002,256,896
44Jun 28, 2021 17:0513,420382,389,349111,385,00002,260,992
45Jun 28, 2021 17:0213,420385,744,603110,386,0001,003,0002,260,992
46Jun 28, 2021 17:0213,420388,733,458110,383,0001,003,0002,260,992
47Jun 28, 2021 17:0613,421381,823,823110,389,0001,003,0002,260,992
48Jun 28, 2021 17:0213,421384,972,739111,391,00002,260,992
49Jun 28, 2021 17:0613,422383,174,570110,396,0001,003,0002,260,992
50Jun 28, 2021 17:0613,424388,492,226110,417,0001,003,0002,392,064
51Jun 28, 2021 17:0613,427391,437,077110,452,000995,0002,523,136
52Jun 28, 2021 17:0113,434388,902,689110,498,0001,004,0002,260,992
53Jun 28, 2021 17:0313,523429,338,999112,240,81302,240,512
54Jun 28, 2021 17:0313,528429,906,638112,278,74002,240,512
55Jun 28, 2021 17:0313,544429,108,171112,415,92402,265,088
56Jun 28, 2021 17:0513,559426,438,430112,540,50402,244,608
57Jun 28, 2021 17:0613,564420,489,632112,585,14302,240,512
58Jun 28, 2021 17:0213,564421,918,659112,581,94302,240,512
59Jun 28, 2021 17:0113,566426,971,703112,598,61802,256,896
60Jun 28, 2021 17:0113,566436,351,739112,595,48502,273,280
61Jun 28, 2021 17:0113,568419,559,249112,610,98202,265,088
62Jun 28, 2021 17:0613,569422,122,074112,626,42202,240,512
63Jun 28, 2021 17:0213,569427,933,947112,622,64002,269,184
64Jun 28, 2021 17:0613,571413,843,597112,635,54802,269,184
65Jun 28, 2021 17:0513,600422,954,246112,881,94102,277,376
66Jun 28, 2021 17:0513,609428,534,603112,955,88002,240,512
67Jun 28, 2021 17:0213,612436,668,534112,976,21302,265,088