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 19, 2023 12:37Jean-Francois SMIGIELSKIJean-Francois SMIGIELSKIScore: 44,630Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 19, 2023 12:3444,603425,585,119370,208,39502,285,568
2Jul 19, 2023 12:3444,609431,747,988370,251,72902,285,568
3Jul 19, 2023 12:3444,612430,244,879370,282,28702,289,664
4Jul 19, 2023 12:3744,630437,240,846370,430,16502,277,376
5Jul 19, 2023 12:3744,688445,705,805370,914,10002,273,280
6Jul 19, 2023 12:3744,740446,069,143371,340,73902,277,376