给定 nnn 。如何在 O(1)O(1)O(1) 的时间复杂度下算出 1⊕3⊕5⊕......⊕n1 \oplus 3 \oplus 5 \oplus ...... \oplus n1⊕3⊕5⊕......⊕n的值?求大佬解答,最好有代码。