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 listMay 23, 2021 20:03Sergey StreminSergey StreminScore: 34,369Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 23, 2021 20:0334,205346,505,369283,905,24502,236,416
2May 23, 2021 20:0334,271340,640,034284,451,42702,228,224
3May 23, 2021 20:0334,325352,358,638284,897,78402,228,224
4May 23, 2021 20:0334,369353,361,239285,262,43402,220,032
5May 23, 2021 20:0336,464382,457,256302,654,13402,224,128
6May 23, 2021 20:0336,479375,614,111302,778,06302,203,648