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 17, 2021 16:34Sergey StreminSergey StreminError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2021 16:3400000no run stats recorded
2May 17, 2021 16:3400000no run stats recorded
3May 17, 2021 16:3400000no run stats recorded
4May 17, 2021 16:3400000no run stats recorded
5May 20, 2021 05:3734,604347,783,906287,214,79802,232,320
6May 20, 2021 05:3736,621372,454,838303,951,66102,228,224
7May 20, 2021 05:3836,624364,518,125303,977,63402,240,512
8May 20, 2021 05:3736,651373,637,237304,201,36502,228,224
9May 20, 2021 05:3836,682369,626,997304,458,55902,215,936
10May 20, 2021 05:3836,693370,728,943304,554,16602,224,128