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

×

1st question of lunchtime

Can anyone please explain the 1st question? I know its easy, but still I couldnt do.

asked 27 Oct '18, 22:57

koulick424's gravatar image

2★koulick424
-21
accept rate: 0%


The only thing you have to do is, out of $X$, $Y$ and $Z$, if the sum of any two numbers is equal to the third number, print "yes", else print "no". If you're unable to think why this is so, read the editorial.

link

answered 27 Oct '18, 23:01

the_extractor's gravatar image

4★the_extractor
1627
accept rate: 10%

edited 27 Oct '18, 23:02

I check only for all possibilites and observe that Only i have to do is to check three conditions x+y==z y+z==x x+z==y It all I have Done

link

answered 27 Oct '18, 23:03

paras1810's gravatar image

4★paras1810
1
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:

×553

question asked: 27 Oct '18, 22:57

question was seen: 114 times

last updated: 27 Oct '18, 23:03