擅长:python、mysql、java
<p>使用<em>max</em>和<em>min</em>可以获得清晰的代码。你知道吗</p>
<p>也就是说,可以使用位旋转:<a href="http://graphics.stanford.edu/~seander/bithacks.html#IntegerMinOrMax" rel="nofollow">http://graphics.stanford.edu/~seander/bithacks.html#IntegerMinOrMax</a></p>