星见安
星见安
全部文章
分类
归档
标签
去牛客网
登录
/
注册
星见安的博客
TA的专栏
0篇文章
0人订阅
算法代码题题解合集
0篇文章
0人学习
全部文章
(共16篇)
题解 | 好多次方
#include <iostream> using namespace std; const int M=1e9+7; long long power(long long base, long long exp, long long mod){ long long res =...
2026-02-06
0
7
题解 | 子数列求积
#include <iostream> #include <vector> using namespace std; const int M=1e9+7; long long kpow(long long a,long long x){ //快速幂 ...
2026-02-06
0
9
题解 | 【模板】分数取模
#include <iostream> #define P 1000000007 using namespace std; int kpow(long long a, long long b, long long p) { if (p == 1) return 0; l...
2026-02-06
0
7
题解 | 【模板】快速幂Ⅰ ‖ 模小整数
#include <iostream> using namespace std; int kpow(long long a, int b, int p){ //注意a要取long long if(p==1) return 0; int res=1; a%=...
2026-02-06
0
6
题解 | 小q的数列
#include <iostream> using namespace std; int main() { int t, ans; long long n, n1; cin>>t; while(t--){ cin>>...
2026-02-06
0
7
题解 | 大水题
#include <iostream> using namespace std; int Plus(int n){ int ans=0; while(n){ ans+=(n%10); n/=10; } return ans...
2026-02-06
0
6
题解 | 素数对
#include <cstring> #include <iostream> #include <vector> #define N 1000001 using namespace std; bool p[N]; int main() { memset...
2026-02-06
0
7
题解 | 质数统计
#include <cstring> #include <iostream> #include <vector> #define N 1000001 using namespace std; bool p[N]; int a[N]; int main() { ...
2026-02-06
0
8
题解 | 筛法判断质数
#include <cstring> #include <iostream> #include <vector> #define N 1000001 using namespace std; bool p[N]; int main() { memset...
2026-02-06
0
8
题解 | 小红和小紫的取素因子游戏
#include <iostream> #include <vector> using namespace std; int main() { int t,n, count=0; cin>>t; while(t--){ c...
2026-02-05
1
10
首页
上一页
1
2
下一页
末页