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 listSep 29, 2023 14:59Ng Song GuanNg Song GuanScore: 1,641,512Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 29, 2023 14:591,640,66813,670,510,08213,617,543,99702,252,800
2Sep 29, 2023 14:591,641,51213,682,226,64513,624,548,22002,256,896
3Sep 29, 2023 14:591,641,84413,692,281,55713,627,308,80702,240,512