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 listDec 24, 2024 11:34Sean DewarSean DewarScore: 69,476Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 24, 2024 11:3469,346601,503,288574,576,000999,0002,289,664
2Dec 24, 2024 11:3069,402607,817,111574,037,0002,000,0002,289,664
3Dec 24, 2024 11:3469,428601,451,030575,250,0001,000,0002,289,664
4Dec 24, 2024 11:3069,440601,683,267575,349,0001,000,0002,269,184
5Dec 24, 2024 11:3069,440606,138,107575,353,0001,000,0002,277,376
6Dec 24, 2024 11:3469,442603,569,107575,369,0001,000,0002,289,664
7Dec 24, 2024 11:3069,447604,624,299575,412,000998,0002,289,664
8Dec 24, 2024 11:3469,463602,537,506574,542,0001,998,0002,273,280
9Dec 24, 2024 11:3069,465606,149,225575,559,000999,0002,273,280
10Dec 24, 2024 11:3469,476606,924,699574,654,0001,998,0002,273,280
11Dec 24, 2024 11:3069,508610,100,649574,921,0001,999,0002,289,664
12Dec 24, 2024 11:3469,555606,683,452576,306,0001,000,0002,277,376
13Dec 24, 2024 11:3469,564604,399,752576,384,0001,000,0002,289,664
14Dec 24, 2024 11:3469,582603,964,134576,534,000999,0002,289,664
15Dec 24, 2024 11:3469,589613,539,800575,591,0001,998,0002,281,472
16Dec 24, 2024 11:3069,670606,215,780577,260,0001,000,0002,289,664
17Dec 24, 2024 11:3069,676602,953,821577,311,0001,000,0002,265,088
18Dec 24, 2024 11:3070,034605,582,693581,286,00002,289,664