摘要: 给出整数x,求一对整数(a, b),满足: $a\bigoplus b=x$, $\frac{a+b}{2}=x$($\frac{a+b}{2}$不四舍五入,也就是$2\mid a+b$) 如果不存在这样的(a, b)输出-1 分析: 如果x的最后一位是1,根据异或,a与b中最后一位分别为0,1,这 阅读全文
posted @ 2023-01-28 09:20 YianSanren 阅读(137) 评论(2) 推荐(0)