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 listSep 23, 2022 13:23abrasumenteabrasumenteScore: 1,641,743Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 23, 2022 13:231,641,42613,686,466,09913,623,833,20202,256,896
2Sep 23, 2022 13:231,641,74313,693,945,74413,626,463,41402,256,896
3Sep 23, 2022 13:231,642,76013,694,204,76613,634,906,26102,248,704