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 listJun 20, 2021 15:08Andrii MaletskyiAndrii MaletskyiError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 17, 2021 15:4200000Error: died or killed
2Jun 17, 2021 15:4600000Error: died or killed
3Jun 20, 2021 15:081,666,92013,911,977,17313,835,435,84202,256,896
4Jun 20, 2021 15:081,667,55513,902,951,29313,840,704,64702,256,896
5Jun 20, 2021 15:081,670,48913,930,915,59913,865,056,60702,252,800