链接:https://loj.ac/problem/124 就是筛一下积性函数. #include<bits/stdc++.h> #define ll long long #define maxn 10000000 #define ha 1000000007 using namespace std; int zs[maxn/10],t=0; int low[maxn+5]; int f[maxn+5]; int mik[maxn+5]; bool v[maxn+5]; int n,k; inl…
link : https://loj.ac/problem/125 分块calc即可. #include<bits/stdc++.h> #define ll long long using namespace std; const int ha=998244353; int n,ans[3]; inline int add(int x,int y){ x+=y; return x>=ha?x-ha:x; } inline int ci0(int x){ return x%ha; } in…