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 9, 2023 23:05AndreyTSAndreyTSScore: 66,364Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 9, 2023 23:0666,180608,180,349549,291,34902,240,512
2Aug 9, 2023 23:0266,350626,965,094550,703,84702,240,512
3Aug 9, 2023 23:0266,352627,668,523550,720,61002,236,416
4Aug 9, 2023 23:0266,359618,634,236550,782,32502,240,512
5Aug 9, 2023 23:0266,361616,455,917550,795,61202,236,416
6Aug 9, 2023 23:0566,362624,681,724550,806,58602,240,512
7Aug 9, 2023 23:0266,364626,301,307550,824,53202,232,320
8Aug 9, 2023 23:0666,366622,935,908550,839,31202,232,320
9Aug 9, 2023 23:0666,369613,364,629550,861,43202,228,224
10Aug 9, 2023 23:0566,379617,377,434550,947,09302,232,320
11Aug 9, 2023 23:0266,385621,451,073550,998,41102,236,416
12Aug 9, 2023 23:0566,464634,153,015551,651,44002,228,224