We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I just bought the test case 20 and found that the expected output is 0. But as per the problem statement, if there is no solutions possible the output must be a string "NO". So the test case fails each time.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Fair Rations
You are viewing a single comment's thread. Return to all comments →
I just bought the test case 20 and found that the expected output is 0. But as per the problem statement, if there is no solutions possible the output must be a string "NO". So the test case fails each time.