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 15:13dzaimadzaimaScore: 11,584Success
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 15:1311,568118,386,22395,018,0001,000,0002,289,664
2Jul 3, 2023 15:1311,570120,947,69994,034,0002,000,0002,269,184
3Jul 3, 2023 15:1311,573116,883,18795,056,0001,000,0002,289,664
4Jul 3, 2023 15:1311,573119,876,69394,059,0002,001,0002,523,136
5Jul 3, 2023 15:1311,575124,924,30894,068,0002,001,0002,289,664
6Jul 3, 2023 15:1311,578119,884,02395,095,0001,001,0002,289,664
7Jul 3, 2023 15:1311,582121,070,31794,128,0002,002,0002,269,184
8Jul 3, 2023 15:1311,584122,903,59194,143,0002,003,0002,273,280
9Jul 3, 2023 15:1311,584118,744,82394,143,0002,003,0002,363,392
10Jul 3, 2023 15:1311,637155,433,69296,584,16302,269,184
11Jul 3, 2023 15:1311,649166,199,10496,684,21402,260,992
12Jul 3, 2023 15:1311,651154,190,65296,700,01902,260,992
13Jul 3, 2023 15:1311,937123,121,21797,072,0002,001,0002,519,040
14Jul 3, 2023 15:1311,939127,828,06997,094,0002,001,0002,265,088
15Jul 3, 2023 15:1311,941121,972,90597,105,0002,002,0002,269,184