摘要:
链接:https://ac.nowcoder.com/acm/contest/38284/A 来源:牛客网 You are given a sequence of integers $a_1,a_2,...,a_n $ There are three types of queries: $\sum 阅读全文
摘要:
##A. Grass Field ###思路: 只有4种情况,枚举一下即可 ###代码: #include <bits/stdc++.h> #define ll long long using namespace std; int t; int main () { cin >> t; while ( 阅读全文
摘要:
##A. The Third Three Number Problem ###题意: 给定一个数n,找到三个数a,b,c 使得 a xor b + b xor c + a xor c = n ###思路: 一般位运算的A题都是可以直接凑出来的,于是直接寻找特殊值,令 a = b = 0, c = x 阅读全文