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 13, 2024 23:49Joad 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 00:1900000Error: expected "53686545315303177 ", got "53686557415423551 "stderr
2Oct 14, 2024 00:1700000Error: expected "53681067638835747 ", got "53681078202857946 "stderr
3Oct 13, 2024 23:5400000Error: expected "53692366485201821 ", got "53692383637792625 "stderr
4Oct 13, 2024 23:4500000Error: expected "53687773600111373 ", got "53687774786816347 "stderr
5Oct 13, 2024 23:494,21956,727,01232,013,0003,001,0002,301,952
6Oct 13, 2024 23:494,23155,007,94833,110,0002,006,0002,273,280
7Oct 13, 2024 23:404,23956,774,83732,171,0003,016,0002,535,424
8Oct 13, 2024 23:544,24559,377,78933,222,0002,013,0002,301,952
9Oct 13, 2024 23:494,24757,036,53933,237,0002,014,0002,273,280
10Oct 13, 2024 23:404,24960,873,09633,250,0002,015,0002,535,424
11Oct 13, 2024 23:494,25160,063,36434,272,0001,008,0002,535,424
12Oct 13, 2024 23:404,25957,308,29233,329,0002,019,0002,310,144
13Oct 13, 2024 23:404,26254,142,82434,361,0001,010,0002,301,952
14Oct 13, 2024 23:454,27461,462,16334,460,0001,013,0002,392,064
15Oct 14, 2024 00:184,27461,316,32633,451,0002,027,0002,535,424
16Oct 13, 2024 23:494,28864,528,27534,573,0001,016,0002,535,424
17Oct 13, 2024 23:404,29164,493,60334,602,0001,017,0002,306,048
18Oct 13, 2024 23:404,29562,766,81034,631,0001,018,0002,535,424
19Oct 13, 2024 23:544,29965,527,97934,659,0001,019,0002,273,280
20Oct 13, 2024 23:544,30063,438,99734,674,0001,019,0002,535,424
21Oct 13, 2024 23:494,30170,613,43234,680,0001,020,0002,301,952
22Oct 13, 2024 23:454,30262,624,26234,684,0001,020,0002,293,760
23Oct 13, 2024 23:494,31660,574,32133,833,0001,990,0002,392,064
24Oct 13, 2024 23:544,32159,842,85532,875,0002,988,0002,387,968
25Oct 13, 2024 23:454,32554,770,03234,902,000997,0002,273,280
26Oct 13, 2024 23:494,34654,205,46935,067,0001,001,0002,273,280
27Oct 13, 2024 23:494,37254,410,00534,273,0002,016,0002,301,952
28Oct 14, 2024 00:184,38059,846,71634,331,0002,019,0002,293,760
29Oct 13, 2024 23:544,39562,756,75336,479,00002,301,952
30Oct 13, 2024 23:494,43966,506,63934,854,0001,991,0002,273,280
31Oct 13, 2024 23:404,47763,494,18534,145,0003,012,0002,535,424
32Oct 13, 2024 23:544,51956,868,92437,504,00002,293,760
33Oct 13, 2024 23:544,52163,005,12736,510,0001,014,0002,273,280
34Oct 13, 2024 23:494,53068,283,87836,584,0001,016,0002,301,952
35Oct 13, 2024 23:544,55861,146,84435,841,0001,991,0002,301,952
36Oct 13, 2024 23:544,55970,660,60835,845,0001,991,0002,482,176
37Oct 13, 2024 23:404,57461,273,72734,969,0002,997,0002,535,424
38Oct 13, 2024 23:404,60361,978,94436,197,0002,010,0002,535,424
39Oct 13, 2024 23:494,63462,028,77637,448,0001,012,0002,293,760
40Oct 14, 2024 00:184,68464,829,16737,879,000996,0002,297,856