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

×

ONE KING DIMENSION

How many bombs are required to destroy [7,8] and [7,8] i.e two same kingdoms

asked 08 Jan '15, 08:53

ambika93's gravatar image

2★ambika93
8128
accept rate: 0%


As you can see in the sample input, putting a bomb on x=2 destroys two kingdoms. In the case you mentioned, only one bomb is required.

link

answered 08 Jan '15, 09:32

mogers's gravatar image

5★mogers
649516
accept rate: 25%

edited 08 Jan '15, 17:51

by x=2 you meant x=7 or x=8 right?

(08 Jan '15, 13:11) betlista ♦♦3★

I was talking about the sample input, but now I see that the my last sentence was unclear. I edited it.

(08 Jan '15, 17:50) mogers5★

@mogers, i'm getting wrong answer from last two days , any possible test case,i'm unable to trace it.

(08 Jan '15, 22:46) ambika932★
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:

×249

question asked: 08 Jan '15, 08:53

question was seen: 1,712 times

last updated: 08 Jan '15, 22:46