![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
位运算
文章平均质量分 92
Code?002
这个作者很懒,什么都没留下…
展开
-
XOR World
Let f(A,B) be the exclusive OR of A,A+1,…,B. Find f(A,B). What is exclusive OR? Constraints All values in input are integers. 0≤A≤B≤10^12 输入 Input is given from Standard Input in the following format:...原创 2020-02-28 17:30:44 · 143 阅读 · 0 评论 -
Raising Modulo Numbers
People are different. Some secretly read magazines full of interesting girls’ pictures, others create an A-bomb in their cellar, others like using Windows, and some like difficult mathematical games. ...原创 2020-02-27 17:32:50 · 139 阅读 · 0 评论 -
64位整数乘法
求 a 乘 b 对 p 取模的值,其中 1≤a,b,p≤10^18。 输入 第一行a,第二行b,第三行p。 输出 一个整数,表示a*b mod p的值。 样例输入 2 3 9 样例输出 6 #include <iostream> #include <bits/stdc++.h> using namespace std; long long I64mul(long long...原创 2020-02-12 13:56:39 · 217 阅读 · 0 评论