You are not logged in. Please login at www.codechef.com to post your questions!

×

POPB - Editorial

PROBLEM LINK:

Practice

Contest

Author: Akshay Venkataramani

Tester: Timothy Jeyadoss

DIFFICULTY:

Easy

PREREQUISITES:

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".

asked 21 Jan '18, 17:28

akshayvenkat97's gravatar image

5★akshayvenkat97
1.1k416
accept rate: 0%

edited 05 Feb '18, 13:48

admin's gravatar image

0★admin ♦♦
19.8k350498541

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • 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