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 18, 2024 01:52zielajzielajScore: 3,762Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 18, 2024 01:523,64353,260,09428,222,0002,015,0002,523,136
2Nov 18, 2024 01:523,72355,099,65728,908,0001,993,0002,359,296
3Nov 18, 2024 01:523,74952,871,40529,107,0002,007,0002,383,872
4Nov 18, 2024 01:523,76251,131,39930,214,0001,007,0002,473,984
5Nov 18, 2024 01:523,77056,323,08929,276,0002,019,0002,527,232
6Nov 18, 2024 01:523,77148,504,25729,282,0002,019,0002,453,504