×

# POPB - Editorial

Practice

Contest

Author: Akshay Venkataramani

Easy

Simple Math

# EXPLANATION:

Length wise, we could have produced a maximum of floor(N/K) squares and width wise, we could have produced a maximum of floor(M/K) squares. Multiply these two for the answer.

(N*M)/(K*K) might seem like a solution, but consider this : N=5,M=7,K=4. (7 * 5)/(4 * 4) is 2, but we can only produce one square from this rectangle(You can work it out by paper on why that's the case!)

# AUTHOR'S SOLUTION:

Author's solution can be found here.

This question is marked "community wiki".

1.1k416
accept rate: 0%

19.8k350498541

 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×15,682
×3,766
×281
×29
×3

question asked: 21 Jan '18, 17:28

question was seen: 202 times

last updated: 05 Feb '18, 13:48