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 listOct 14, 2024 16:37Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 14, 2024 16:3800000Error: expected "53685221778986499 ", got "53685229113692731 "stderr
2Oct 14, 2024 16:3700000Error: expected "53683263819838557 ", got "53683283665924002 "stderr
3Oct 14, 2024 16:384,22259,470,46434,045,0001,001,0002,306,048
4Oct 14, 2024 16:364,22660,478,56034,071,0001,002,0002,306,048
5Oct 14, 2024 16:374,22956,595,78833,098,0002,005,0002,306,048
6Oct 14, 2024 16:364,23256,614,23732,117,0003,011,0002,273,280
7Oct 14, 2024 16:364,23358,858,24632,122,0003,011,0002,535,424
8Oct 14, 2024 16:364,23854,392,53334,172,0001,005,0002,301,952
9Oct 14, 2024 16:364,23959,343,47534,175,0001,005,0002,535,424
10Oct 14, 2024 16:384,24159,749,19533,186,0002,011,0002,306,048
11Oct 14, 2024 16:384,24257,964,11234,200,0001,005,0002,301,952
12Oct 14, 2024 16:364,24759,863,19334,242,0001,007,0002,273,280
13Oct 14, 2024 16:384,25055,147,31832,248,0003,023,0002,301,952
14Oct 14, 2024 16:364,25265,605,80333,273,0002,016,0002,535,424
15Oct 14, 2024 16:374,25255,300,64834,280,0001,008,0002,273,280
16Oct 14, 2024 16:374,25360,827,45334,295,0001,008,0002,306,048
17Oct 14, 2024 16:384,25464,759,55534,302,0001,008,0002,310,144
18Oct 14, 2024 16:364,25564,467,28032,293,0003,027,0002,297,856
19Oct 14, 2024 16:364,25558,637,73032,291,0003,027,0002,301,952
20Oct 14, 2024 16:384,25858,420,68134,330,0001,009,0002,535,424
21Oct 14, 2024 16:364,26069,427,02034,352,0001,010,0002,535,424
22Oct 14, 2024 16:364,26055,475,88834,349,0001,010,0002,301,952
23Oct 14, 2024 16:364,26761,319,88533,393,0002,023,0002,293,760
24Oct 14, 2024 16:384,26758,997,15632,384,0003,036,0002,293,760
25Oct 14, 2024 16:384,26859,325,14932,385,0003,036,0002,301,952
26Oct 14, 2024 16:384,26856,404,33133,401,0002,024,0002,273,280
27Oct 14, 2024 16:374,26860,275,95333,400,0002,024,0002,535,424
28Oct 14, 2024 16:384,27257,009,43933,430,0002,026,0002,375,680
29Oct 14, 2024 16:384,28465,945,59333,525,0002,031,0002,297,856
30Oct 14, 2024 16:384,28560,651,84132,520,0003,048,0002,301,952
31Oct 14, 2024 16:384,29462,075,46235,644,00002,269,184
32Oct 14, 2024 16:384,29766,044,26334,647,0001,019,0002,273,280
33Oct 14, 2024 16:364,30067,734,71633,647,0002,039,0002,273,280
34Oct 14, 2024 16:384,31762,680,23134,837,000995,0002,293,760
35Oct 14, 2024 16:374,31859,764,90234,848,000995,0002,531,328
36Oct 14, 2024 16:384,31860,842,00534,847,000995,0002,387,968
37Oct 14, 2024 16:384,31960,884,28533,857,0001,991,0002,387,968
38Oct 14, 2024 16:364,32073,791,46333,864,0001,992,0002,297,856
39Oct 14, 2024 16:364,32063,252,01433,866,0001,992,0002,293,760
40Oct 14, 2024 16:384,32058,158,11234,862,000996,0002,301,952
41Oct 14, 2024 16:384,32357,067,66534,886,000996,0002,535,424
42Oct 14, 2024 16:384,32460,587,28932,898,0002,990,0002,297,856
43Oct 14, 2024 16:374,32760,046,15732,925,0002,993,0002,273,280
44Oct 14, 2024 16:384,32754,207,53832,919,0002,992,0002,301,952
45Oct 14, 2024 16:384,33155,650,44532,951,0002,995,0002,531,328
46Oct 14, 2024 16:384,33361,071,53034,965,000999,0002,301,952
47Oct 14, 2024 16:364,34063,350,93034,024,0002,001,0002,301,952
48Oct 14, 2024 16:384,34265,876,16534,036,0002,002,0002,301,952
49Oct 14, 2024 16:384,35357,770,73034,127,0002,007,0002,531,328
50Oct 14, 2024 16:384,39059,874,71134,414,0002,024,0002,301,952
51Oct 14, 2024 16:384,40060,256,57735,507,0001,014,0002,297,856
52Oct 14, 2024 16:364,43966,271,44335,849,000995,0002,310,144
53Oct 14, 2024 16:374,48362,855,73834,195,0003,017,0002,301,952
54Oct 14, 2024 16:384,49561,843,11036,300,0001,008,0002,301,952
55Oct 14, 2024 16:384,50960,103,85834,391,0003,034,0002,535,424
56Oct 14, 2024 16:364,52359,066,50936,528,0001,014,0002,379,776
57Oct 14, 2024 16:374,55968,328,44136,841,000995,0002,531,328
58Oct 14, 2024 16:384,62963,907,34036,402,0002,022,0002,301,952
59Oct 14, 2024 16:374,72358,070,28738,197,0001,005,0002,269,184