Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int answer = 0;
- // loop through all the cow IDs
- // set the int location to whichever side the cow is on
- // loop through all of the rows
- // check if the cow id number is right and check if the side the cow is on is equal to location
- // if it is not add one to the answer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement