博客园 首页 私信博主 显示目录 隐藏目录 管理 动画
该文被密码保护。 阅读全文
posted @ 2022-01-22 21:47 Allorkiya 阅读(0) 评论(0) 推荐(0) 编辑
摘要: #include <bits/stdc++.h> using namespace std; #define int long long const int N = 1e7 + 10; int tot; int ntp[N]; int primes[N]; void sieve () { ntp[1] 阅读全文
posted @ 2022-01-22 12:31 Allorkiya 阅读(25) 评论(0) 推荐(0) 编辑
摘要: T5 n阶乘的最小公倍数 #include <bits/stdc++.h> using namespace std; #define int long long int gcd(int a,int b) { return b == 0 ? a : gcd(b,a % b); } int lcm(in 阅读全文
posted @ 2022-01-22 12:27 Allorkiya 阅读(22) 评论(0) 推荐(0) 编辑
摘要: T4 最大三位数乘积回文数 #include <bits/stdc++.h> using namespace std; #define int long long bool judge(int x) { int nx = x; int t = x; int res = 0; while(t) { r 阅读全文
posted @ 2022-01-22 12:22 Allorkiya 阅读(22) 评论(0) 推荐(0) 编辑