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 listAug 24, 2023 04:46matsuoka-601matsuoka-601Error
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 24, 2023 04:5400000Error: expected "53692774808831787 ", got "53692749208831787 "stderr
2Aug 24, 2023 04:5300000Error: expected "53683194135054912 ", got "53683168535054912 "stderr
3Aug 24, 2023 04:4700000Error: expected "53682986711753249 ", got "53682961111753249 "stderr
4Aug 24, 2023 04:4700000Error: expected "53685355603949826 ", got "53685330003949826 "stderr
5Aug 24, 2023 04:4700000Error: expected "53683017255470442 ", got "53682966029870442 "stderr
6Aug 24, 2023 04:4600000Error: expected "53692192836653372 ", got "53692167236653372 "stderr
7Aug 24, 2023 04:548,00190,504,46964,394,0002,012,0002,514,944
8Aug 24, 2023 04:548,00888,325,33965,462,0001,007,0002,277,376
9Aug 24, 2023 04:548,01689,933,91166,530,00002,277,376
10Aug 24, 2023 04:488,01992,276,77465,548,0001,008,0002,277,376
11Aug 24, 2023 04:548,02494,193,54565,590,0001,009,0002,277,376
12Aug 24, 2023 04:548,030100,787,19466,647,00002,277,376
13Aug 24, 2023 04:488,04791,149,72465,796,000996,0002,514,944
14Aug 24, 2023 04:548,08093,922,06965,061,0002,001,0002,514,944
15Aug 24, 2023 04:488,09091,089,24365,140,0002,004,0002,277,376
16Aug 24, 2023 04:488,09691,902,04465,190,0002,005,0002,277,376
17Aug 24, 2023 04:548,21191,531,04567,150,0001,002,0002,535,424
18Aug 24, 2023 04:488,26794,464,53467,610,0001,009,0002,514,944
19Aug 24, 2023 04:548,29695,314,73266,860,0001,995,0002,510,848
20Aug 24, 2023 04:488,33493,715,96867,166,0002,004,0002,277,376
21Aug 24, 2023 04:548,35890,439,31467,360,0002,010,0002,273,280
22Aug 24, 2023 04:488,37690,404,95968,510,0001,007,0002,277,376
23Aug 24, 2023 04:488,37895,254,67469,541,00002,510,848
24Aug 24, 2023 04:568,414141,732,88969,834,27702,281,472
25Aug 24, 2023 04:568,415126,664,90269,848,27702,273,280
26Aug 24, 2023 04:548,420122,101,36369,884,28302,281,472
27Aug 24, 2023 04:488,421141,470,14469,895,06502,281,472
28Aug 24, 2023 05:408,429130,949,87969,961,89902,265,088
29Aug 24, 2023 04:538,438135,551,36170,033,04502,281,472
30Aug 24, 2023 05:408,445148,174,70770,090,35302,281,472
31Aug 24, 2023 04:488,47093,698,39368,294,0002,008,0002,277,376
32Aug 24, 2023 05:408,489131,644,26870,458,38502,273,280
33Aug 24, 2023 04:488,500139,636,04970,547,32802,269,184
34Aug 24, 2023 04:538,505146,644,99070,592,45902,277,376
35Aug 24, 2023 05:408,523142,437,15170,739,22402,273,280
36Aug 24, 2023 04:538,527143,975,73070,774,75102,277,376
37Aug 24, 2023 04:538,570134,693,40871,130,24502,265,088
38Aug 24, 2023 05:408,625132,604,91771,584,84402,252,800
39Aug 24, 2023 04:548,643132,347,22371,735,89502,281,472
40Aug 24, 2023 04:538,662140,026,23171,898,64702,273,280
41Aug 24, 2023 05:408,663139,555,43371,905,62702,265,088
42Aug 24, 2023 04:548,676140,831,23572,014,79102,281,472
43Aug 24, 2023 04:568,733141,625,10772,486,70102,252,800
44Aug 24, 2023 04:488,809128,354,53873,113,93502,277,376
45Aug 24, 2023 04:538,829141,839,55573,278,95302,285,568