I can't get mine accepted either, and I've thrown every piece of input I can think at it. I've tested it with all the ones on here too -- every time it comes back WA. I'm always sure to test if I can get more burgers with the same amount of beertime, too. Can someone with an accepted solution post a bunch of input and corresponding output?
I have to try not to drink beer? If there's a case where I don't drink beer, but the amount of hamburguers is less than anotherone where I drink beer, I should nevertheless use that output??
You should not drink beer if there exists any way that you can.
So the output should be 2 and 11 instead of yours.
Btw, I still get WA. Can anyone help me?
Finally got accepted!
Thank you all!
I made my code in C, so if anyone needs help with a C code, just post your question at acm@somnius.com.ar .
See ya,
Ale.
I am puzzled with this problem.
I have passed all the sample input shown in another post ,but I still got wa.
I use " if( rest%m <time || (rest%m==time && rest/n +num1>max2) ) "
to nininum the time for drinking beer and if with the same time maxnum the burger num.