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 listJun 2, 2024 18:26GraceGraceScore: 6,729Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 2, 2024 18:266,70086,509,28455,613,00002,396,160
2Jun 2, 2024 18:266,70579,878,46054,641,0001,011,0002,400,256
3Jun 2, 2024 18:266,70680,763,04555,660,00002,273,280
4Jun 2, 2024 18:266,70781,819,20454,656,0001,012,0002,273,280
5Jun 2, 2024 18:266,71080,254,73154,679,0001,012,0002,273,280
6Jun 2, 2024 18:266,72382,063,70053,806,0001,992,0002,400,256
7Jun 2, 2024 18:266,72687,453,44954,829,000996,0002,273,280
8Jun 2, 2024 18:266,72985,328,72453,853,0001,994,0002,400,256
9Jun 2, 2024 18:266,74183,819,80953,953,0001,998,0002,478,080
10Jun 2, 2024 18:266,74378,591,28753,967,0001,998,0002,400,256
11Jun 2, 2024 18:266,76382,476,13754,127,0002,004,0002,273,280
12Jun 2, 2024 18:266,82983,137,45156,679,00002,273,280
13Jun 2, 2024 18:266,848117,001,56256,837,90402,297,856
14Jun 2, 2024 18:266,865120,985,44956,977,16502,281,472
15Jun 2, 2024 18:266,937115,545,19057,581,07402,256,896