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 listDec 27, 2024 22:00Joad 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
1Dec 27, 2024 22:1100000Error: No answer to stdout. Died or killed?stderr
2Dec 27, 2024 22:0100000Error: No answer to stdout. Died or killed?stderr
3Dec 27, 2024 22:0000000Error: expected "53692157263319917 ", got "53692168867536056 "stderr
4Dec 27, 2024 22:0000000Error: expected "53692008458507411 ", got "53692008654434203 "stderr
5Dec 27, 2024 22:0000000Error: No answer to stdout. Died or killed?stderr
6Dec 27, 2024 22:0000000Error: expected "53686205064892886 ", got "53686209648451331 "stderr
7Dec 27, 2024 22:114,20257,605,95834,880,00002,297,856
8Dec 27, 2024 22:014,21864,285,92033,006,0002,000,0002,535,424
9Dec 27, 2024 22:014,22257,055,79634,043,0001,001,0002,273,280
10Dec 27, 2024 22:004,22358,385,44333,046,0002,002,0002,531,328
11Dec 27, 2024 22:004,22857,706,82433,084,0002,005,0002,535,424
12Dec 27, 2024 22:014,23054,623,35334,106,0001,003,0002,306,048
13Dec 27, 2024 22:014,23361,255,58934,134,0001,003,0002,273,280
14Dec 27, 2024 22:004,25554,257,51334,308,0001,009,0002,306,048
15Dec 27, 2024 22:114,26260,623,92034,366,0001,010,0002,535,424
16Dec 27, 2024 22:014,26758,549,00932,384,0003,036,0002,535,424
17Dec 27, 2024 22:004,26957,258,50235,432,00002,306,048
18Dec 27, 2024 22:014,27558,007,46535,479,00002,535,424
19Dec 27, 2024 22:114,27857,588,54235,506,00002,297,856
20Dec 27, 2024 22:014,28259,153,52034,527,0001,015,0002,297,856
21Dec 27, 2024 22:004,28660,711,65635,576,00002,535,424
22Dec 27, 2024 22:114,28661,424,34835,570,00002,301,952
23Dec 27, 2024 22:004,29662,940,92935,654,00002,310,144
24Dec 27, 2024 22:014,32065,039,39333,868,0001,992,0002,273,280
25Dec 27, 2024 22:114,33156,101,50334,948,000998,0002,392,064
26Dec 27, 2024 22:004,33762,761,62634,001,0002,000,0002,306,048
27Dec 27, 2024 22:014,34158,672,71535,030,0001,000,0002,306,048
28Dec 27, 2024 22:014,35459,881,22034,131,0002,007,0002,301,952
29Dec 27, 2024 22:014,36462,425,46835,216,0001,006,0002,531,328
30Dec 27, 2024 22:014,37262,544,19034,271,0002,015,0002,310,144
31Dec 27, 2024 22:004,37659,581,85834,300,0002,017,0002,531,328
32Dec 27, 2024 22:114,39257,441,24636,456,00002,301,952
33Dec 27, 2024 22:004,60762,139,62336,224,0002,012,0002,531,328