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

×

Explain the meaning of the problem SURCHESS

I was trying to solve the problem supposing that I have to choose a square sub-board of the given chess board from either top-left side or bottom-right side.

But in the problem it is given:

A sub-board of Chef's chessboard is a rectangular piece of this board with an arbitrarily chosen top left and bottom right cell (possibly equal to the original chessboard). Every sub-board is also a chessboard.

So what exactly is said in the problem, by "arbitrarily chosen top left and bottom right cell", can anyone explain it with some example.

Thanks

asked 20 Oct '18, 18:06

mohit96m's gravatar image

3★mohit96m
863
accept rate: 12%

1

it mean that chessboard size can be of any height, breath.

(20 Oct '18, 21:44) jvjplus2★

say rectangle's top left=(1,0) and bottom right(5,5) now 4 verices of rectangle are TOP_LEFT(1,0) TOP RIGHT (1,5) BOTTOM LEFT (5,0) BOTTOM RIGHT (5,5)

we can uniquely determine a rectangle by these 2 points. also top-left.x<=bottom-right.x&&top-left.y<=bottom-right.y

link

answered 20 Oct '18, 21:53

resda's gravatar image

3★resda
262
accept rate: 33%

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:

×1,410
×202
×3

question asked: 20 Oct '18, 18:06

question was seen: 176 times

last updated: 20 Oct '18, 21:53