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 29, 2023 15:02Joey ChanceJoey ChanceScore: 1,640,615Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 29, 2023 15:021,637,11813,644,747,48213,588,081,04102,248,704
2Aug 29, 2023 15:021,640,61513,670,044,82013,617,106,82402,256,896
3Aug 29, 2023 15:021,643,55813,700,254,73413,641,532,38602,256,896