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 20, 2024 01:25zielajzielajError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 20, 2024 01:2500000Error: expected "53689741806470433 ", got "53689741806477511 "stderr
2Nov 20, 2024 01:253,51848,035,80927,184,0002,013,0002,387,968
3Nov 20, 2024 01:253,54051,168,53928,371,0001,013,0002,375,680
4Nov 20, 2024 01:253,57558,663,13128,650,0001,023,0002,392,064
5Nov 20, 2024 01:253,67162,560,60429,456,0001,015,0002,408,448
6Nov 20, 2024 01:253,68758,392,25029,579,0001,019,0002,400,256
7Nov 20, 2024 01:253,80955,137,13130,596,0001,019,0002,269,184