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 3, 2023 13:41dzaimadzaimaScore: 15,129Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2023 13:4114,603176,506,885121,207,91502,273,280
2Jul 3, 2023 13:4114,773190,465,358122,611,93502,273,280
3Jul 3, 2023 13:4114,810189,876,125122,924,86902,273,280
4Jul 3, 2023 13:4114,913146,517,555121,782,0001,996,0002,289,664
5Jul 3, 2023 13:4114,926149,181,157121,891,0001,998,0002,289,664
6Jul 3, 2023 13:4115,080152,961,778123,164,0002,002,0002,277,376
7Jul 3, 2023 13:4115,129151,334,810124,570,0001,004,0002,383,872
8Jul 3, 2023 13:4115,164151,521,801124,866,000998,0002,289,664
9Jul 3, 2023 13:4115,309148,594,464125,066,0002,001,0002,367,488
10Jul 3, 2023 13:4115,388164,697,916125,726,0001,995,0002,289,664
11Jul 3, 2023 13:4115,664154,134,086128,008,0002,000,0002,289,664
12Jul 3, 2023 13:4115,756155,201,600128,777,0001,996,0002,289,664