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

×

Doubt in DISHOWN JULY14

"0 x y : This denotes that the chef containing dish number x competes with the chef containing dish number y currently in this round. If a single chef is the owner of both the dishes, print "Invalid query!" (without quotes), otherwise execute and store the result of this round as described by the rules above." What if x(or y) has lost all his dishes to some other chef z.....is that a valid query?

asked 12 Jul '14, 01:07

pandeymht's gravatar image

5★pandeymht
-3148
accept rate: 0%

edited 14 Jul '14, 15:02

admin's gravatar image

0★admin ♦♦
19.5k348496535


please note that ..x and y are dishes not the owners ..so there will always be an owner to x or y ..hope it helps ..:)

link

answered 12 Jul '14, 01:24

rachilies's gravatar image

4★rachilies
114147
accept rate: 11%

yes, I got that later. Please delete the question.

(12 Jul '14, 01:32) pandeymht5★
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:

×290
×20

question asked: 12 Jul '14, 01:07

question was seen: 873 times

last updated: 14 Jul '14, 15:02