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 listJan 21, 2023 16:20Kevin HeaveyKevin HeaveyScore: 53,936Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 21, 2023 16:2053,714501,147,198445,827,85102,224,128
2Jan 21, 2023 16:2153,718513,959,254445,855,92102,224,128
3Jan 21, 2023 16:2153,875525,992,268447,163,57602,232,320
4Jan 21, 2023 16:2153,936526,799,322447,664,86302,228,224
5Jan 21, 2023 16:2053,943518,003,171447,728,14102,224,128
6Jan 21, 2023 16:2054,044518,019,391448,564,25502,256,896