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 28, 2023 20:48LukasLukasScore: 33,885Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 28, 2023 20:4233,820349,430,849280,701,90002,289,664
2Aug 28, 2023 20:4233,821344,555,717280,716,39702,281,472
3Aug 28, 2023 20:4233,878361,354,107281,190,54102,289,664
4Aug 28, 2023 20:4833,885338,901,140281,246,33702,289,664
5Aug 28, 2023 20:4833,921333,444,278281,545,14202,285,568
6Aug 28, 2023 20:4833,921348,822,164281,545,07902,289,664