I have tried a lot to solve the "milking cow" problem of USACO . But WA in test 7 . I don't know what is the problem , i have tried multiple approaches , but it still wrong in test 7 . can you please help me to find my bug please ????
my code : https://paste.ubuntu.com/25901070/
problem source : http://train.usaco.org/usacoprob2?a=pxSIvVnwAXn&S=milk2
please please please help me guys , I have tried my best .