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 18, 2024 00:47zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 18, 2024 00:4600000Error: expected "53690016307892961 ", got "53690016307897999 "stderr
2Nov 18, 2024 00:473,52054,108,69027,205,0002,015,0002,523,136
3Nov 18, 2024 00:473,54649,645,54829,432,00002,457,600
4Nov 18, 2024 00:473,55654,163,60829,518,00002,383,872
5Nov 18, 2024 00:473,73654,428,51230,010,0001,000,0002,527,232
6Nov 18, 2024 00:473,75347,235,03029,141,0002,009,0002,490,368
7Nov 18, 2024 00:473,76355,413,70429,218,0002,015,0002,527,232