← Problem book: C
Lesson 14 of 96 · 10 XP
Squares in a rectangle
Theory and problem statement
Machine translation, not yet reviewed by a native speaker.
You are given a rectangle a × b and the side of a square c — positive integers on one line.
How many c × c squares fit into the rectangle if they can't be rotated or cut?
Example
Input:
10 7 3
Output:
6
Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.