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 25, 2023 08:57just a funjust a funScore: 2,177,287Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 25, 2023 08:572,176,73618,144,036,80318,066,907,42602,183,168
2May 25, 2023 08:572,177,28718,147,257,38818,071,483,40802,252,800
3May 25, 2023 08:572,180,02718,156,562,06018,094,221,65702,277,376