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:43Pavel KrajcevskiPavel KrajcevskiScore: 2,220,089Success
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:432,219,89118,489,418,32818,425,097,93102,252,800
2Jul 6, 2023 03:432,220,08918,523,522,96118,426,741,60102,260,992
3Jul 6, 2023 03:432,243,93818,706,435,63518,624,687,30702,269,184