You are viewing a single comment's thread. Return to all comments →
I don't know if anyone else will run into the same problem, but the solution I found found was change the code to
int result = fairRations(B); if(result==-1) bufferedWriter.write("NO"); else bufferedWriter.write(String.valueOf(result));
If the out put is NO, return -1.
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 don't know if anyone else will run into the same problem, but the solution I found found was change the code to
If the out put is NO, return -1.