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 listMay 3, 2024 15:21Steve HanSteve HanScore: 43,048Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2024 15:2143,036439,294,451357,198,80402,273,280
2May 3, 2024 15:2243,045424,496,855357,275,91502,277,376
3May 3, 2024 15:2243,046416,142,671357,280,18702,277,376
4May 3, 2024 15:2143,048425,339,975357,294,30202,277,376
5May 3, 2024 15:2243,052448,385,140357,329,65502,277,376
6May 3, 2024 15:2143,076426,492,660357,534,20402,273,280