甘肃农业大学_zrk
甘肃农业大学_zrk
全部文章
分类
归档
标签
去牛客网
登录
/
注册
甘肃农业大学_zrk的博客
全部文章
(共5篇)
题解 | 小红的排列构造②
#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
9
题解 | 三角形取数(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
11
题解 | 最大子段和
#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
11
题解 | 小红闯关
贪心,1 尽量将道具用在花费时间大的关卡 2 对于你想要用道具的关卡,尽量用离这个关卡前面最近的道具 比如你想在第6关使用道具,第3关和第5关各获得一个道具,那么用第5关的道具#include <bits/stdc++.h>using namespace std;int main() ...
2025-09-20
0
18
题解 | 小红闯关
贪心,1 尽量将道具用在花费时间大的关卡 2 对于你想要用道具的关卡,尽量用离这个关卡前面最近的道具 比如你想在第6关使用道具,第3关和第5关各获得一个道具,那么用第5关的道具 #include <bits/stdc++.h> using namespace std; int main...
C++
2025-09-20
0
26