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

×

Minion Chef and Bananas (MINEAT) .....Please tell me what's wrong with my solution

This is the question: https://www.codechef.com/problems/MINEAT

This is my solution - https://www.codechef.com/viewsolution/18905480

My solution gives correct answer for sample test cases. I know this solution will not get me through Subtask2 but I think it should have cleared Subtask1. Please help.

asked 15 Jun '18, 16:22

bipul1895's gravatar image

2★bipul1895
01
accept rate: 0%


"Chef would like to make sure that she can finish eating all bananas by that time" What you are doing is checking if time == hour. if(time<=hour) then also it will do, because she just wants to finish it before her mother comes.

link

answered 15 Jun '18, 17:15

siddharthp538's gravatar image

4★siddharthp538
2555
accept rate: 11%

edited 15 Jun '18, 17:17

thanks a lot

(15 Jun '18, 17:18) bipul18952★
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:

×1,038

question asked: 15 Jun '18, 16:22

question was seen: 161 times

last updated: 15 Jun '18, 17:24