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 listFeb 20, 2023 00:22Oleg TOleg TScore: 36,338Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 19, 2023 20:4636,328370,564,625301,521,58202,269,184
2Feb 20, 2023 00:2236,330363,666,707301,537,15402,277,376
3Feb 19, 2023 20:4636,335364,289,764301,577,60402,285,568
4Feb 19, 2023 20:4636,338365,662,135301,608,37402,269,184
5Feb 20, 2023 00:2236,350361,365,658301,704,05702,273,280
6Feb 20, 2023 00:2236,366360,299,755301,836,15202,277,376