JavaShuo
栏目
标签
CF Codeforces Global Round 1 C Meaningless Operations /*^,&,gcd*/
时间 2021-01-13
栏目
C&C++
繁體版
原文
原文链接
一开始打表,发了半天呆。。。。 后面手推了异或和与的性质,,发现 当a!=2^n-1(2^n-1刚好比a大时候取到n),只要选一个b,b满足,a的二进制是1时,b的二进制是0,a的二进制是0时,b的二进制是1,这样gcd(a^b,a&b)==2^n-1。所以当a!=2^n-1,答案为2^n-1。 当a==2^n-1时,如果a除1和他本身,无因子,那么答案为1,否则答案为最大因子。。 浪费好
>>阅读原文<<
相关文章
1.
CF-1110C-Meaningless Operations
2.
Codeforces Global Round 1
3.
Codeforces Global Round 6
4.
Codeforces Global Round 3
5.
【CF】Codeforces Round #423(Div.1)
6.
【CodeForces】Codeforces Global Round 9
7.
Codeforces Global Round 12
8.
Codeforces Global Round 13
9.
Codeforces Global Round 2
10.
cf Educational Codeforces Round 55 C. Multi-Subject Competition
更多相关文章...
•
SQL ROUND() 函数
-
SQL 教程
•
PHP round() 函数
-
PHP参考手册
•
C# 中 foreach 遍历的用法
•
Java 8 Stream 教程
相关标签/搜索
meaningless
operations
round#1
global
gcd
CF Round #278
codeforces
1.c
c#1
C&C++
C#教程
PHP 7 新特性
MySQL教程
C#
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
吴恩达深度学习--神经网络的优化(1)
2.
FL Studio钢琴卷轴之工具菜单的Riff命令
3.
RON
4.
中小企业适合引入OA办公系统吗?
5.
我的开源的MVC 的Unity 架构
6.
Ubuntu18 安装 vscode
7.
MATLAB2018a安装教程
8.
Vue之v-model原理
9.
【深度学习】深度学习之道:如何选择深度学习算法架构
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
CF-1110C-Meaningless Operations
2.
Codeforces Global Round 1
3.
Codeforces Global Round 6
4.
Codeforces Global Round 3
5.
【CF】Codeforces Round #423(Div.1)
6.
【CodeForces】Codeforces Global Round 9
7.
Codeforces Global Round 12
8.
Codeforces Global Round 13
9.
Codeforces Global Round 2
10.
cf Educational Codeforces Round 55 C. Multi-Subject Competition
>>更多相关文章<<