LCC '23 Contest 4 J1 - Cramming Time!

View as PDF

Submit solution

Points: 3
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type

It's time for the CCC once again!

Yaniel De is currently practicing on WLMOJ, trying to cram in as many problems as he can before the contest begins. He will feel prepared if he succesfully solves problems worth a total P points before the contest begins.

If Yaniel solves N problems per day in M days, what must the problems be worth on average, in order for Yaniel to feel prepared?.

Constraints

1 \le N \le 100

1 \le M \le 30

 1 \le P \le 1 \times 10^5

Input Specification

The first and only line will contain space-separated integers N, M, and P.

Output Specification

Output the lowest average value of each question that Yaniel needs to solve. (Assuming they can be any integer \ge 1)

Sample Input

8 3 100

Sample Output

5

Sample Output Explanation

If Yaniel solves problems worth 5 points, he will earn 5 \times 8 = 40 points per day, and 40 \times 3 = 120 points over the 3 days, allowing him to feel prepared (since 100 \le 120).

If Yaniel only solves problems worth 4 points, he will only earn 96 points, making him feel underprepared.


Comments

There are no comments at the moment.