摘要:
RT 考试的时候口胡出来的,正确性不会证,不过貌似100000内的数都是对的(现在已经会了,在此鸣谢gyz大佬) 代码: #include <bits/stdc++.h> using namespace std; typedef long long ll; const int maxn=5e7+10 阅读全文
摘要:
本代码由张大仙独家冠名 从张大仙那里翻译而来。原链接大仙的Splay超详细讲解!学Splay这一篇就够了! 代码如下: #include <bits/stdc++.h> using namespace std; const int maxn=100000+10,Inf=0x3f3f3f3f; int 阅读全文
摘要:
#include <bits/stdc++.h> using namespace std; #define wzx sb int a[20]={0,2,3,5,7,11,13,17,19,23}; typedef unsigned long long ll; ll ans,cnt,d,ans_p,d 阅读全文