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 listNov 10, 2024 22:41zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 10, 2024 22:4000000Error: expected "53684270307626698 ", got "40972358716488405 40972358716488405 "stderr
2Nov 10, 2024 22:4000000Error: expected "53690843146198649 ", got "40972358716488405 40972358716488405 "stderr
3Nov 10, 2024 22:416,45679,154,98952,577,0001,011,0002,535,424
4Nov 10, 2024 22:416,47080,641,94753,703,00002,535,424
5Nov 10, 2024 22:416,48577,159,56152,830,000996,0002,535,424
6Nov 10, 2024 22:416,48781,971,98252,841,000997,0002,433,024
7Nov 10, 2024 22:416,49088,598,80952,866,000997,0002,433,024
8Nov 10, 2024 22:416,71386,622,55454,706,0001,013,0002,273,280
9Nov 10, 2024 22:417,71182,995,87963,005,0001,000,0002,265,088
10Nov 10, 2024 22:417,74489,007,43664,274,00002,269,184
11Nov 10, 2024 22:417,76392,818,45964,433,00002,424,832
12Nov 10, 2024 22:417,76483,434,87764,443,00002,531,328
13Nov 10, 2024 22:417,82286,256,12463,923,000998,0002,531,328
14Nov 10, 2024 22:418,22891,191,20067,290,0001,004,0002,424,832