摘要: 题目链接:https://ac.nowcoder.com/acm/problem/208337 对于 其实是二进制的不进位运算, 因此有公式。该公式表示 二进制位上均为 1 的相加会进位。那么 其中需要满足 且 与 二进制位上不能有相同的,否则输出-1. 1 #include<bits/stdc++ 阅读全文
posted @ 2022-03-20 18:13 TFLSNOI 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://ac.nowcoder.com/acm/problem/205085 1 #include<bits/stdc++.h> 2 using namespace std; 3 int t; 4 int n, a; 5 int ans; 6 int main() 7 { 8 ci 阅读全文
posted @ 2022-03-20 17:44 TFLSNOI 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 题目链接:https://ac.nowcoder.com/acm/problem/23483 1 #include<bits/stdc++.h> 2 using namespace std; 3 long long a[5000010]; 4 int n; 5 bool cmp(long long 阅读全文
posted @ 2022-03-20 17:15 TFLSNOI 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 题目链接https://www.luogu.com.cn/problem/P1469 异或运算 1 #include<bits/stdc++.h> 2 using namespace std; 3 int n; 4 int a; 5 int ans=0; 6 int main() 7 { 8 cin 阅读全文
posted @ 2022-03-20 16:12 TFLSNOI 阅读(48) 评论(0) 推荐(0) 编辑