Points: 7 (partial)
Time limit: 1.0s
Memory limit: 512M
RHHS is a very popular school and has a very large number of students. However, this year there are too many students and not enough rooms for all of them. You have been tasked with building a new school building to accommodate classrooms.
The new school can have an unlimited number of floors, provided that there are no gaps in the building. Each floor can have an unlimited number of rooms. The cost of building the classroom on the floor is . What is the minimum cost to build the new school?
For all subtasks:
The first and only line contains three integers , , and .
Output the minimum cost required to build the new school. Please note that this number may not fit inside a 32-bit integer.
5 5 7