银河护胃队
银河护胃队
全部文章
分类
归档
标签
去牛客网
登录
/
注册
银河护胃队的博客
全部文章
(共166篇)
题解 | 括号匹配深度
#include<bits/stdc++.h> using namespace std; string s; void solve(){ int len=s.size(),ma=0; int count=0; for(int i=0;i<len;i++){ i...
2026-02-18
0
15
题解 | 小q的数列
#include<bits/stdc++.h> using namespace std; #define int long long int T; int n; void solve(){ if(n==0){ cout<<0<<" "...
2026-02-18
0
13
题解 | 素数对
#include<bits/stdc++.h> using namespace std; const int N=5e5+10; int n; map<int,bool> mp; vector<int> v; bool f[N]; int main(){ ...
2026-02-16
0
12
题解 | 质数统计
#include<bits/stdc++.h> using namespace std; const int N=1e6+10; int n,l,r,cnt; vector<int> v; int a[N]; bool f[N]; int main(){ ios::s...
2026-02-16
0
13
题解 | 筛法判断质数
#include<bits/stdc++.h> using namespace std; const int N=1e6+10; int T; map<int,bool> mp; bool f[N]; int main(){ ios::sync_with_stdio(fa...
2026-02-16
0
14
题解 | 最小乘积代价和
#include<bits/stdc++.h> using namespace std; int n,x=1; int main(){ cin>>n; int res=0; for(int i=2;i*i<=n;i++){ while(n%i==0){...
2026-02-16
0
14
题解 | 小红和小紫的取素因子游戏
#include<bits/stdc++.h> using namespace std; int t,x; int main(){ cin>>t; while(t--){ cin>>x; int prime_cnt=0; for(int i=2...
2026-02-16
0
13
题解 | 分解质因数
#include<bits/stdc++.h> using namespace std; long long n; int main(){ cin>>n; for(int i=2;i*i<=n;i++){ while(n%i==0){ cout&...
2026-02-16
0
9
题解 | 阶乘末尾非零数字
#include<bits/stdc++.h> using namespace std; int main(){ int n2=0,n5=0; int n,res=1; cin>>n; for(int i=1;i<=n;i++){ int t...
2026-02-15
0
14
题解 | 数字的情绪
#include<bits/stdc++.h> using namespace std; long long T,n; int main(){ cin>>T; while(T--){ cin>>n; set<long long> ...
2026-02-15
0
11
首页
上一页
2
3
4
5
6
7
8
9
10
11
下一页
末页