You are viewing a single comment's thread. Return to all comments →
private static int crazyFee(int d, int m, int y, int dd, int dm, int dy) { return ((y << 9) | (m << 5) | d) <= ((dy << 9) | (dm << 5) | dd) ? 0 : (y ^ dy) == 0 && (m ^ dm) == 0 ? 15 * (d - dd) : (y ^ dy) == 0 ? 500 * (m - dm) : 10000; } and of course "python" style =)
Seems like cookies are disabled on this browser, please enable them to open this website
Day 26: Nested Logic
You are viewing a single comment's thread. Return to all comments →