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 2, 2023 15:45Yuriy 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 2, 2023 15:4600000Error: expected "53682366872981128 ", got "53682341272981128 "stderr
2Jan 2, 2023 15:4500000Error: expected "53687608396975797 ", got "53687582796975797 "stderr
3Jan 2, 2023 15:457,16983,979,18057,483,0002,016,0002,453,504
4Jan 2, 2023 15:457,16992,709,67656,474,0003,025,0002,424,832
5Jan 2, 2023 15:457,17590,077,57856,522,0003,028,0002,281,472
6Jan 2, 2023 15:457,21485,355,62356,885,0002,993,0002,498,560
7Jan 2, 2023 15:457,22084,822,13451,933,0007,989,0002,306,048
8Jan 2, 2023 15:457,24082,222,33456,085,0004,006,0002,367,488
9Feb 24, 2023 22:227,257127,541,43360,235,90802,211,840
10Jan 2, 2023 15:467,267123,278,06860,314,58902,297,856
11Jan 2, 2023 15:467,270115,990,71560,343,77002,228,224
12Jan 2, 2023 15:457,272124,502,35360,361,58702,265,088
13Jan 2, 2023 15:457,277130,812,22060,398,50402,228,224
14Jan 2, 2023 15:457,28487,028,04057,432,0003,022,0002,289,664
15Jan 2, 2023 15:457,29486,337,29257,516,0003,027,0002,371,584
16Jan 2, 2023 15:457,30284,748,33457,580,0003,030,0002,396,160
17Feb 24, 2023 22:227,308125,725,60060,659,71802,191,360
18Jan 2, 2023 15:457,312123,860,65660,690,79202,232,320
19Feb 24, 2023 22:227,315132,182,51660,715,41502,260,992
20Jan 2, 2023 15:477,315132,631,22760,718,12702,232,320
21Jan 2, 2023 15:477,346121,424,20860,968,44902,260,992
22Jan 2, 2023 15:477,353119,734,83961,028,51802,207,744
23Jan 2, 2023 15:467,424117,596,91261,617,94102,224,128