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 listAug 25, 2023 09:09matsuoka-601matsuoka-601Score: 8,558Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 25, 2023 09:098,382141,350,39169,571,34502,277,376
2Aug 25, 2023 09:098,408132,218,08069,783,17702,273,280
3Aug 25, 2023 09:108,416139,614,32869,855,04802,277,376
4Aug 25, 2023 09:108,558146,026,58171,027,73102,285,568
5Aug 25, 2023 09:098,596139,674,62871,349,63002,277,376
6Aug 25, 2023 09:108,676140,170,35372,014,18102,256,896