This content is archived!

For the 2018-2019 school year, we have switched to using the WLMOJ judge for all MCPT related content. This is an archive of our old website and will not be updated.

The amount of weight that Lily can lift grows linearly. This means that we can develop a linear equation of how much she is able to lift in the form of:

y = Bx + A

Where B is how much more she can lift every week, and A is how much she can lift at the start.

The only trick to this problem is to note that we don’t add B to the amount she can lift N times, as Lily’s doesn’t get stronger until the second week. So, we have x = N - 1.

The final output for each test case is B \times (N - 1) + A.

Time complexity

\mathcal{O}(1)


Problem

Read the problem.