Advertisement
xerpi

Untitled

Sep 22nd, 2013
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.16 KB | None | 0 0
  1. if (Xu > Yu) {
  2.     Wu = (Xu + Yu)%4;
  3.     if ((Xu + Yu) < 4) r = 1 else r = 0;
  4. } else {
  5.     Wu = (Xu - Yu) % 4;
  6.     if ((Xu - Yu) >= 0) r = 1 else r = 0;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement