摘要: https://vjudge.net/contest/317000#problem/F #include <iostream> #include <cstdio> #include <queue> #include <algorithm> #include <cmath> #include <cst 阅读全文
posted @ 2019-08-05 18:05 WeiAR 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 主函数由int main()改成signed main() 好处:把int改成long long 的时候不用单独把它改成int了,懂的人都懂(滑稽 阅读全文
posted @ 2019-08-05 16:19 WeiAR 阅读(1315) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <cstdio> #include <queue> #include <algorithm> #include <cmath> #include <cstring> #define inf 2147483647 #define P 99824 阅读全文
posted @ 2019-08-05 16:13 WeiAR 阅读(170) 评论(0) 推荐(0) 编辑
摘要: UVA - 11327https://vjudge.net/problem/28358/origin求欧拉函数的前缀和,二分查找到那个位置,再从它开始暴力gcd找 阅读全文
posted @ 2019-08-05 14:59 WeiAR 阅读(186) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #define inf 2147483647 #define N 1000010 #define p(a) putchar(a) #define For(i,a,b) for(long long i=a;i'9'){if(c=='-')y=-1;c=getchar();} ... 阅读全文
posted @ 2019-08-05 10:01 WeiAR 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 求1~n的欧拉函数的值 阅读全文
posted @ 2019-08-05 09:04 WeiAR 阅读(167) 评论(0) 推荐(0) 编辑