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 17, 2024 23:44zielajzielajScore: 4,437Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 17, 2024 23:444,33358,368,97133,965,0001,997,0002,396,160
2Nov 17, 2024 23:444,38758,798,60035,399,0001,011,0002,531,328
3Nov 17, 2024 23:444,41368,201,23935,607,0001,017,0002,514,944
4Nov 17, 2024 23:444,43764,587,00934,837,0001,990,0002,523,136
5Nov 17, 2024 23:444,50758,946,91736,396,0001,011,0002,392,064
6Nov 17, 2024 23:444,75365,028,27239,453,00002,461,696