Perhaps it's "cheating" but you can just pack a lookup table into a 64-bit constant value, like this: 0000 0 -> 1 0001 1 -> 3 0011 3 -> 2 ...
確定! 回上一頁