摘要:1 /** 2 Miller_Rabin 算法进行素数测试 3 快速判断一个c) 21 ret-=c;//直接取模慢很多 22 } 23 tempc) 25 temp-=c; 26 b>>=1; 27 } 28 return ret; 29 } 30 31 ///计算r...
阅读全文
摘要:Problem Description Farmer John keeps a website called ‘FansBlog’ .Everyday , there are many people visited this blog.One day, he find the visits has
阅读全文
摘要:inline int Read() {//输入挂 int x=0,f=1; char ch=getchar(); while (ch'9') {if (ch=='-') f=-f; ch=getchar();} while (ch>='0'&&ch<='9') x=x*10+ch-'0',ch=getchar(); return x*f; } 1 ...
阅读全文
摘要:void add(ll x){//线性基插入创建模板 for(int i=50;i>=0;i--){ if(x&(1ll=0;i--)//记得从线性基的最高位开始 if((anss^d[i])>anss)anss^=d[i]; return anss; }
阅读全文
摘要:https://blog.csdn.net/a_forever_dream/article/details/83654397 (清晰明白) https://www.cnblogs.com/ljh2000-jump/p/5869991.html(可辅助阅读) 题目: 线性基裸题:https://www
阅读全文
摘要:使用时直接 BigNum a,b,c; 可定义大数直接进行运算
阅读全文
摘要:链接:https://ac.nowcoder.com/acm/contest/881/J来源:牛客网 题目描述 Bobo has two fractions xaxa and ybyb. He wants to compare them. Find the result. 输入描述: The inp
阅读全文
摘要:B. Two Buttons Vasya has found a strange device. On the front panel of a device there are: a red button, a blue button and a display showing some posi
阅读全文