trying to finalize this assignment

Trying to finalize this assignment, I had gotten help but I was only given hints regarding where I should change something from lines 24-29. I did some changes to count, r, and c in that area which helped to get some passing cases, but I could only get 1/2 of test cases correct. Not sure where to go from here.

code: https://pastebin.com/q64r7g0q

test cases: https://pastebin.com/gTGKzzYr
Last edited on
What is the assignment?
the assignment details are here, sorry forgot to post it: https://pastebin.com/qQ9fv9Q2

origin: http://www.usaco.org/index.php?page=viewproblem2&cpid=189
Last edited on
Topic archived. No new replies allowed.