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

×

Regarding Pizza Slice JAN19

2
1

It's given in the question that x isnotequalto z. Taking that constrain gave wrong answer. After including the case x=z, it gave correct answer. Please Clarify.

asked 09 Jan, 18:06

saurabhshadow's gravatar image

3★saurabhshadow
374
accept rate: 0%

edited 10 Jan, 02:02

It was an issue for a few hours, we thought it not to give an announcement for it when it got cleared, because it was obvious and falling more on the intuitive side worthy to be checked again by the users. Though, Really regret for the inconvenience caused.

(14 Jan, 17:47) include_sajal4★

Thanks guys!I was stuck over it for more than a day !_!

link

answered 09 Jan, 22:33

keshav1107's gravatar image

4★keshav1107
111
accept rate: 0%

Same happened with me,but never mind

(10 Jan, 02:07) saurabhshadow3★

Yes, when I was doing question x!=z was not given but later it was added,it can create a mess for the coders. Thanks to @saurabhshadow for clearing the doubt.

link

answered 10 Jan, 03:02

cherry0697's gravatar image

4★cherry0697
141
accept rate: 0%

Thanks @saurabhshadow for clarifying this you are such nice guy..

link

answered 10 Jan, 03:09

sarthak_eddy's gravatar image

4★sarthak_eddy
112
accept rate: 0%

edited 10 Jan, 03:10

Never mind

(13 Jan, 13:44) saurabhshadow3★

I can confirm that given constraints are wrong.

link

answered 09 Jan, 18:49

aryanc403's gravatar image

6★aryanc403
2.5k1516
accept rate: 10%

Yes, seems they are wrong, x can be equal to z. Seems the statements can be not synchronized in the last time :(

(10 Jan, 02:05) mgch6★

I don't see the condition that x!=z anywhere in the problem statement. Was it in the earlier version of the problem statement?

(10 Jan, 09:04) shoom6★

Its mentioned |x - y| = 1, and |y - z| = 1 , so x = 1, y = 2, z = 1 is a valid input, its nowhere mentioned x != z

(11 Jan, 11:40) aman_robotics6★

AFAIK, the statement had been updated by the time you guys read it?

(11 Jan, 11:48) vijju123 ♦♦5★

This just happened for few hours and it was fixed after that. Sorry for the inconvenience caused then.

(14 Jan, 17:43) include_sajal4★

Where is it given that x is not equal to z? Or is the problem statement edited now?

link

answered 10 Jan, 14:12

vhemanthsai's gravatar image

4★vhemanthsai
11
accept rate: 0%

I can confirm that the problem has been updated, yet the change is not announced.

(10 Jan, 15:17) mcsinyx2★
Answer is hidden as author is suspended. Click here to view.

answered 11 Jan, 18:37

karangreat234's gravatar image

4★karangreat234
(suspended)
accept rate: 0%

All these 2N−1 line segments must have equal lengths, which must also be equal to |

link

answered 11 Jan, 22:15

kenil123's gravatar image

4★kenil123
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:

×2,356
×471
×422
×109

question asked: 09 Jan, 18:06

question was seen: 2,492 times

last updated: 14 Jan, 17:47