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 listAug 2, 2023 12:30Tejas G.Tejas G.Score: 1,637,129Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 2, 2023 12:301,618,44613,496,720,38513,433,104,68102,256,896
2Aug 2, 2023 12:301,637,12913,648,384,95213,588,173,80802,256,896
3Aug 2, 2023 12:301,639,38013,674,355,43013,606,849,97802,260,992