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 21:44Joad 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 21:4500000Error: expected "53691708190287506 ", got "53691711949802588 "stderr
2Dec 27, 2024 21:4500000Error: expected "53679928656935359 ", got "53679945498020907 "stderr
3Dec 27, 2024 21:4400000Error: No answer to stdout. Died or killed?stderr
4Dec 27, 2024 21:4400000Error: expected "53686008537494563 ", got "53686019530893264 "stderr
5Dec 27, 2024 21:4300000Error: expected "53683342128405831 ", got "53683357463526094 "stderr
6Dec 27, 2024 21:444,36755,490,17434,232,0002,013,0002,535,424
7Dec 27, 2024 21:444,40059,556,81036,520,00002,535,424
8Dec 27, 2024 21:444,40763,558,63535,560,0001,016,0002,535,424
9Dec 27, 2024 21:454,40760,011,25735,566,0001,016,0002,301,952
10Dec 27, 2024 21:444,40964,880,94136,591,00002,269,184
11Dec 27, 2024 21:444,43262,414,06535,795,000994,0002,535,424
12Dec 27, 2024 21:454,43765,233,84035,832,000995,0002,531,328
13Dec 27, 2024 21:444,43865,911,18636,837,00002,396,160
14Dec 27, 2024 21:444,46060,772,42836,020,0001,000,0002,535,424
15Dec 27, 2024 21:444,46163,054,76235,027,0002,001,0002,531,328
16Dec 27, 2024 21:444,48258,871,31436,199,0001,005,0002,301,952
17Dec 27, 2024 21:444,49860,436,80335,315,0002,018,0002,301,952
18Dec 27, 2024 21:454,51459,773,98534,426,0003,037,0002,306,048
19Dec 27, 2024 21:444,53258,745,01836,602,0001,016,0002,301,952
20Dec 27, 2024 21:454,54060,897,58537,680,00002,535,424
21Dec 27, 2024 21:454,58162,535,10436,021,0002,001,0002,297,856
22Dec 27, 2024 21:454,62359,800,00537,365,0001,009,0002,396,160
23Dec 27, 2024 21:444,70571,090,91037,050,0002,002,0002,293,760