So, how many problems have you solved?
InterviewTime limit1sMemory limit1024 MB
Given N, M, and K, find the minimum and maximum problems solved so far when reaching a total of N needs at least M per day for at least K days.
- Level
Easy2 of 10
- Topics
- Math, Implementation
- Solved
- No attempts yet
Problem
Brsil wants to qualify as a contest setter as soon as possible, so he solves problems every day with the goal of solving problems. That is why he is curious about how many problems other people have solved. People describe their progress like this: "I need to solve at least problems per day for at least more days to reach a total of or more." Each time he hears this, Brsil cannot help wondering how many problems the other person has solved so far.
Help Brsil find the minimum and maximum number of problems the other person has solved so far.
Input
The first line contains three positive integers , , and separated by spaces. ()
This means: "I need to solve at least problems in total, solving problems per day, for at least more days."
No input is given in which the person could solve problems before days have passed.
Output
Print the minimum and maximum number of problems the other person has solved so far, as deduced from the sentence above. Separate the two numbers with a space and print them on one line, in that order.