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 listJul 6, 2023 03:45Pavel KrajcevskiPavel KrajcevskiScore: 2,225,958Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 6, 2023 03:452,224,51518,528,155,33018,463,475,55402,273,280
2Jul 6, 2023 03:452,225,95818,532,902,33718,475,454,16502,260,992
3Jul 6, 2023 03:452,244,89818,696,053,57518,632,652,68102,252,800