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

×

Failing to pass 2 test cases for "chef and special dishes" from march long challenge.

I tried to solve thisproblem for march long challenge but my solution is failing to pass two test cases. Can anyone tell me what is bug in my code.

asked 21 Mar '16, 22:53

arpit728's gravatar image

1★arpit728
6831563
accept rate: 10%


Here: https://www.codechef.com/viewsolution/9716915

added

        if(l<=1)
            System.out.println("NO");
link

answered 21 Mar '16, 23:05

nilesh3105's gravatar image

5★nilesh3105
716210
accept rate: 31%

@nilesh3105

Thank you.

(21 Mar '16, 23:19) arpit7281★
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,086
×1,650
×1,385
×348
×192
×79

question asked: 21 Mar '16, 22:53

question was seen: 631 times

last updated: 21 Mar '16, 23:19