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 11, 2021 18:42evgenikwtevgenikwtScore: 32,387Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 11, 2021 18:4232,378336,723,413268,740,63802,269,184
2Jun 11, 2021 15:3832,380332,368,804268,751,32902,256,896
3Jun 11, 2021 15:3832,385330,330,290268,792,19102,260,992
4Jun 11, 2021 15:3832,387329,611,843268,813,45702,265,088
5Jun 11, 2021 18:4233,219335,223,236275,719,63002,273,280
6Jun 11, 2021 18:4233,234338,273,599275,841,94402,260,992