甘肃农业大学_zrk
甘肃农业大学_zrk
全部文章
分类
归档
标签
去牛客网
登录
/
注册
甘肃农业大学_zrk的博客
全部文章
(共8篇)
题解 | 好多次方
#include <bits/stdc++.h> using namespace std; using i64 = long long; i64 euler(i64 x){//求p的欧拉函数 i64 res=x; for(i64 i=2;i<=x/i;i++){ ...
2025-12-01
0
5
题解 | 括号匹配深度
#include <bits/stdc++.h>using namespace std;int main(){ //(((())()((()))))() string s;cin>>s; stack <char> st; int ans=0...
2025-11-30
0
7
题解 | 小苯的数字权值
#include <bits/stdc++.h> using namespace std; int main(){ int t;cin>>t; while(t--){ long long int n;cin>>n; ...
2025-11-15
0
41
题解 | 小红的排列构造②
#include <bits/stdc++.h> using namespace std; int main() { int n;cin>>n; string s;cin>>s; if(s.back()=='0'){ cou...
2025-10-21
1
18
题解 | 三角形取数(Hard Version)
/*#include <bits/stdc++.h> using namespace std; long long int a[305][605]={0}; bool isa[305][605]={0}; long long int dp[305][305][305]={0}; int ...
2025-10-18
0
21
题解 | 最大子段和
#include <bits/stdc++.h> using namespace std; int main(){ int n;cin>>n; vector <long long int> a(n+1,0); for(int i=1;i&l...
2025-10-18
0
23
题解 | 小红闯关
贪心,1 尽量将道具用在花费时间大的关卡 2 对于你想要用道具的关卡,尽量用离这个关卡前面最近的道具 比如你想在第6关使用道具,第3关和第5关各获得一个道具,那么用第5关的道具#include <bits/stdc++.h>using namespace std;int main() ...
2025-09-20
0
28
题解 | 小红闯关
贪心,1 尽量将道具用在花费时间大的关卡 2 对于你想要用道具的关卡,尽量用离这个关卡前面最近的道具 比如你想在第6关使用道具,第3关和第5关各获得一个道具,那么用第5关的道具 #include <bits/stdc++.h> using namespace std; int main...
C++
2025-09-20
0
34