Advertisement
updown

Untitled

Sep 12th, 2021
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. int answer = 0;
  2.  
  3. // loop through all the cow IDs
  4. // set the int location to whichever side the cow is on
  5. // loop through all of the rows
  6. // check if the cow id number is right and check if the side the cow is on is equal to location
  7. // if it is not add one to the answer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement