摘要:
逐位思考的好题目。 #include<cstdio> const int H=10000010; char G[H],*_=G; int read(){ int x=0; while(*_<'0'||'9'<*_)_++; while('0'<=*_&&*_<='9')x=x*10+(*_++^'0 阅读全文
摘要:
一个常数更小的做法。 对于 $a \oplus b + b \oplus c = a \oplus c$ ,令 $A = a \oplus b$ ,$B = b \oplus c$ ,则 $a \oplus c = A \oplus B$ 。 显然有 $A \oplus B \leq A + B$ 阅读全文