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 19, 2024 01:02zielajzielajScore: 3,698Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 19, 2024 01:023,53852,727,51528,354,0001,012,0002,523,136
2Nov 19, 2024 01:023,58054,277,34728,721,000990,0002,375,680
3Nov 19, 2024 01:023,59754,028,77928,856,000995,0002,514,944
4Nov 19, 2024 01:023,69860,948,36530,691,00002,379,776
5Nov 19, 2024 01:023,71557,763,82930,838,00002,531,328
6Nov 19, 2024 01:023,73758,131,34729,013,0002,000,0002,379,776