Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int KHex = K + (6 * (K / 0x0A));
- int MHex = M + (6 * (M / 0x0A));
- int KH = KHex >> 4;
- int KL = KHex & 0x000F;
- int MH = MHex >> 4;
- int ML = MHex & 0x000F;
- if (K == M) X = 10;
- if (K != M )
- {
- if ((KH == ML) && (KL == MH)) X = 9;
- else if ((KH == MH) || (KL == ML) || (KH == ML) || (KL == MH) ) X = 8;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement