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

×

Need help in CHEFRES

In the problem, https://www.codechef.com/problems/CHEFRES, I solved it using offline method but this submission https://www.codechef.com/viewsolution/20377198 gave wrong answer for subtask 2 while https://www.codechef.com/viewsolution/20405364 gives AC. Can someone clarify me, @vijju123, why the first solution is failing and suggest some test case for the same. Thanks in advance.

asked 30 Sep '18, 15:47

ankit_gupta_'s gravatar image

5★ankit_gupta_
11
accept rate: 0%

edited 01 Oct '18, 00:23


Same thing is happening with my code.

It is giving wrong answer on subtask 2 on this submission

link text

when I have decreased the value of end point of each interval by 1 as it is exact closing time of restaurant, so any person coming on this particular time has to wait.

But by not decreasing the value of end point of each interval by 1, and not considering that point, is giving AC.

Link of the AC code

link text

So please, can someone clarify us, where the first solution is failing. Thanks...

link

answered 01 Oct '18, 01:22

nilesh_sahu's gravatar image

2★nilesh_sahu
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:

×334
×185
×45

question asked: 30 Sep '18, 15:47

question was seen: 192 times

last updated: 01 Oct '18, 01:22