牛客217671279号
牛客217671279号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客217671279号的博客
全部文章
(共5篇)
题解 | #找位置#
#include <iostream> #include<map> #include<vector> #include<string> using namespace std; map<char,vector<string>> ...
2024-03-12
0
208
题解 | #邮票# 不会动态规划,给大家提供dfs的思路
#include <iostream> #include<map> using namespace std; map<int,int> m; int ans=0; int yp[]={8,8,8,8,8,10,10,10,10,18,18,18,18,18,18}...
2024-03-11
0
261
题解 | #C翻转#
#include <iostream> using namespace std; int matrix[5][5]; void rotate(int a,int b,int x,int y){ int jz[b][b];//保存要翻转的矩阵 x--;//案例中下标都是从1...
2024-03-09
0
227
题解 | #字符串排序#
#include <iostream> #include<vector> #include<algorithm> using namespace std; vector<char> v; bool compare(char a, char b) { ...
2024-03-08
0
213
题解 | #神奇的口袋#
#include <iostream> #include<vector> using namespace std; vector<int> volume; int cap=40; int pocket(int sum,int i,int n){ if(s...
2024-03-01
0
207