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 listApr 18, 2023 02:45Aaron LoviAaron LoviScore: 87,993Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 18, 2023 02:4587,912779,955,238729,665,45702,293,760
2Apr 18, 2023 02:5087,935804,963,222729,859,97402,281,472
3Apr 18, 2023 02:4987,970799,508,317730,151,43802,273,280
4Apr 18, 2023 02:5087,991801,919,717730,323,50702,277,376
5Apr 18, 2023 02:4987,993794,854,965730,342,03302,277,376
6Apr 18, 2023 02:4987,994780,503,989730,353,67202,293,760
7Apr 18, 2023 02:5087,996801,490,802730,364,35302,285,568
8Apr 18, 2023 02:4587,998795,717,033730,383,87202,289,664
9Apr 18, 2023 02:4588,020786,233,540730,565,22802,285,568