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 14, 2024 04:16zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 14, 2024 04:1500000Error: expected "53683786692799118 ", got "53683786692773518 "stderr
2Nov 14, 2024 04:164,07958,497,70431,864,0001,991,0002,375,680
3Nov 14, 2024 04:164,10658,709,09933,074,0001,002,0002,367,488
4Nov 14, 2024 04:164,11255,068,26933,123,0001,003,0002,371,584
5Nov 14, 2024 04:164,11258,971,77833,129,0001,003,0002,514,944
6Nov 14, 2024 04:164,11553,006,34832,149,0002,009,0002,465,792
7Nov 14, 2024 04:164,12157,840,39033,197,0001,005,0002,371,584
8Nov 14, 2024 04:164,12155,583,68033,199,0001,006,0002,514,944
9Nov 14, 2024 04:164,12653,825,48233,237,0001,007,0002,367,488
10Nov 14, 2024 04:164,13564,036,25933,308,0001,009,0002,523,136
11Nov 14, 2024 04:164,14760,396,55934,422,00002,527,232
12Nov 14, 2024 04:164,15758,991,16234,501,00002,379,776
13Nov 14, 2024 04:164,26559,037,17735,396,00002,527,232