- 博客(4)
- 收藏
- 关注
原创 acwing 龙哥的问题
#include <bits/stdc++.h>using namespace std;typedef long long ll;int phi(int x){ int ans=x; for(int i=2;(ll)i*i<=x;++i) if(x%i==0) { ans=(ll)ans*(i-1)/i; while(x%i==0) x/=i; } if(x&g
2022-01-26 10:09:28
725
原创 POJ3696
POJ3696#include <bits/stdc++.h>using namespace std;typedef long long ll;ll phi(ll n){//欧拉函数 ll rea=n; for(ll i=2;i*i<=n;i++){ if(n%i==0){ rea=rea-rea/i; do n/=i; while(n%i==0); } } if(n>1)rea=rea-rea/n; return rea;}ll
2022-01-26 10:08:35
638
原创 洛谷P4139
洛谷P4139 #include<bits/stdc++.h> #define lst long long #define ldb double #define N 10000050 #define M 10000000 using namespace std; const int Inf=1e9; int read() { int x=0,m=0;char ch=getchar();//快读
2022-01-26 10:07:17
532
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人