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 03:37zielajzielajError
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 03:3600000Error: expected "53686255857935418 ", got "53686255857936706 "stderr
2Nov 20, 2024 03:373,56458,196,84927,607,0001,971,0002,523,136
3Nov 20, 2024 03:373,56960,482,31629,621,00002,523,136
4Nov 20, 2024 03:373,57557,080,57228,646,0001,023,0002,338,816
5Nov 20, 2024 03:373,68154,492,75230,553,00002,347,008
6Nov 20, 2024 03:373,71756,457,12929,854,000995,0002,527,232
7Nov 20, 2024 03:373,74252,849,11830,059,0001,001,0002,269,184