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

×

different neighbour question,long challenge

the question seems confusing can any one give me one more example for the question. like what would be output if we have 5 columns and 4 rows?

asked 07 Jan, 13:52

ask_daddy's gravatar image

3★ask_daddy
-11
accept rate: 0%


for n=4 and m=5 one possible solution can be:

4

3 1 2 2 1

2 1 3 4 4

4 4 3 1 2

1 2 2 1 3

there can be different solution for n=4 and m=5 but it will be accepted if it is correct.

@ask_daddy , I hope this will help you.

link

answered 09 Jan, 22:49

divyanshug99's gravatar image

3★divyanshug99
11
accept rate: 0%

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:

×820
×398

question asked: 07 Jan, 13:52

question was seen: 542 times

last updated: 09 Jan, 22:50