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 17:14Joad 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 17:1500000Error: No answer to stdout. Died or killed?stderr
2Oct 14, 2024 17:1400000Error: expected "53683990711692045 ", got "53683989530685578 "stderr
3Oct 14, 2024 17:1400000Error: expected "53692607412837333 ", got "53692610198107939 "stderr
4Oct 14, 2024 17:154,23255,898,93333,117,0002,007,0002,306,048
5Oct 14, 2024 17:144,23860,629,82633,166,0002,010,0002,301,952
6Oct 14, 2024 17:154,23956,207,36533,172,0002,010,0002,306,048
7Oct 14, 2024 17:144,24363,383,37733,208,0002,012,0002,273,280
8Oct 16, 2024 23:404,24460,326,29132,205,0003,019,0002,306,048
9Oct 14, 2024 17:154,24958,094,93133,253,0002,015,0002,306,048
10Oct 14, 2024 17:154,25054,368,60134,269,0001,007,0002,301,952
11Oct 16, 2024 23:404,25456,047,62133,288,0002,017,0002,273,280
12Oct 14, 2024 17:154,25556,689,34432,291,0003,027,0002,314,240
13Oct 14, 2024 17:154,26468,685,97932,355,0003,033,0002,535,424
14Oct 14, 2024 17:144,26565,108,61532,363,0003,034,0002,310,144
15Oct 14, 2024 17:144,26754,157,01034,402,0001,011,0002,301,952
16Oct 14, 2024 17:154,27458,801,58134,465,0001,013,0002,396,160
17Oct 14, 2024 17:144,27659,711,78933,466,0002,028,0002,461,696
18Oct 14, 2024 17:144,27958,645,91034,501,0001,014,0002,535,424
19Oct 14, 2024 17:154,28460,987,89535,558,00002,535,424
20Oct 14, 2024 17:154,28962,230,50733,567,0002,034,0002,273,280
21Oct 14, 2024 17:154,29969,533,59333,645,0002,039,0002,310,144
22Oct 16, 2024 23:404,31762,667,27933,844,0001,990,0002,531,328
23Oct 16, 2024 23:404,31862,733,02434,842,000995,0002,306,048
24Oct 16, 2024 23:404,31964,442,19334,855,000995,0002,273,280
25Oct 14, 2024 17:154,32159,703,46332,878,0002,988,0002,301,952
26Oct 14, 2024 17:154,32666,983,07634,910,000997,0002,293,760
27Oct 14, 2024 17:144,32756,532,89633,919,0001,995,0002,531,328
28Oct 14, 2024 17:154,32860,606,21333,930,0001,995,0002,318,336
29Oct 14, 2024 17:154,33960,360,82235,015,0001,000,0002,269,184
30Oct 14, 2024 17:154,34256,284,63635,039,0001,001,0002,269,184
31Oct 14, 2024 17:144,34455,166,66435,056,0001,001,0002,531,328
32Oct 16, 2024 23:404,34455,182,11935,053,0001,001,0002,531,328
33Oct 14, 2024 17:154,35261,174,13135,119,0001,003,0002,269,184
34Oct 14, 2024 17:154,36958,688,17934,251,0002,014,0002,531,328
35Oct 14, 2024 17:154,40158,755,66536,529,00002,269,184
36Oct 14, 2024 17:144,40864,236,95636,583,00002,293,760
37Oct 14, 2024 17:144,48656,434,26634,212,0003,018,0002,387,968
38Oct 14, 2024 17:144,49058,780,88935,250,0002,014,0002,269,184
39Oct 14, 2024 17:144,73560,157,85438,293,0001,007,0002,531,328