牛客933883715号
牛客933883715号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客933883715号的博客
全部文章
(共38篇)
题解 | 子串计算
#include<iostream> #include<string> #include<map> using namespace std; int main() { map<string,int> mymap; string s; cin>...
2025-08-28
0
32
题解 | 神奇的口袋
//背包问题的变种,这里是求方案数 #include<iostream> #include<algorithm> #include<queue> #include<string> #include<vector> using namespa...
2025-08-28
0
26
题解 | 玛雅人的密码
#include<iostream> #include<queue> #include<string> using namespace std; struct jg//构建结构体 { string str; int count; jg(string s,in...
2025-08-27
0
43
题解 | 矩阵的最小路径和
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param matrix int整型vector<vector<>> the...
2025-08-27
0
45
题解 | 放苹果
#include<iostream> #include<algorithm> #include<vector> using namespace std; const int MAXINT=11; int main() { int M,N; cin>>...
2025-08-27
0
34
题解 | 兑换零钱(一)
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 最少货币数 * @param arr int整型vector the array * @param...
2025-08-26
0
37
题解 | 最小邮票数
#include<iostream> #include<algorithm> using namespace std; const int MAXM=101; const int MAXN=21;//M是总容量,N是数量 int main() { int M,N; c...
2025-08-26
0
35
题解 | 采药
#include<iostream> #include<algorithm> using namespace std; const int MAXT=1001; const int MAXM=101; int main() { int T,M;//M是数量,T是总容量 ...
2025-08-26
0
46
题解 | 点菜问题
#include<iostream> #include<algorithm> using namespace std; const int MAXC=1001; const int MAXN=101; int main() { int C,N; while(cin>...
2025-08-26
0
37
题解 | Coincidence
#include<iostream> #include<vector> #include<algorithm> #include<cstring> using namespace std; int main() { string s1,s2; ci...
2025-08-25
0
20
首页
上一页
1
2
3
4
下一页
末页