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


Need help in CHEFRES

In the problem,, I solved it using offline method but this submission gave wrong answer for subtask 2 while 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

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...


answered 01 Oct '18, 01:22

nilesh_sahu's gravatar image

accept rate: 0%

toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 30 Sep '18, 15:47

question was seen: 192 times

last updated: 01 Oct '18, 01:22