ZyWoOoO
ZyWoOoO
全部文章
分类
归档
标签
去牛客网
登录
/
注册
ZyWoOoO的博客
全部文章
(共14篇)
题解 | 跳台阶
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param number int整型 ...
2025-04-24
0
15
题解 | 斐波那契数列
#include <bits/stdc++.h> using namespace std; const int N = 1e5 + 5; int f[N]; int main() { int n;cin >> n; f[1] = f[2] = 1;//根据斐波...
2025-04-24
0
10
题解 | 括号区间匹配
#include <bits/stdc++.h> using namespace std; const int MAXN = 110; int dp[MAXN][MAXN]; int main() { string s; cin >> s; int n = ...
2025-04-24
0
12
题解 | [CQOI2007]涂色PAINT
#include <bits/stdc++.h> using namespace std; const int MAXN = 55; int dp[MAXN][MAXN]; int main() { string s;cin >> s; int n = s.s...
2025-04-24
0
14
题解 | 合并回文子串
#include <bits/stdc++.h> using namespace std; const int MAXN = 55; int dp[MAXN][MAXN][MAXN][MAXN]; int main() { int t; cin >> t; ...
2025-04-24
0
19
题解 | 小红取数
#include <bits/stdc++.h> using namespace std; #define int long long const int MAXN = 1e3 + 5; int f[MAXN],dp[MAXN][MAXN];; signed main() { ...
2025-04-23
0
13
题解 | 字母收集
#include <bits/stdc++.h> using namespace std; int f[998];//998特卖我的love int dp[550][550]; int main() { f['l'] = 4;//排个分先,有关键字就加分 f['o'] ...
2025-04-22
0
12
题解 | 点击消除
#include <bits/stdc++.h> using namespace std; const int MAXN = 300000 + 10; // 用数组模拟栈,存储字符 char st[MAXN]; // 栈顶指针,初始可看作栈为空 int top; int main() ...
2025-04-22
0
13
题解 | 走迷宫
#include <bits/stdc++.h> using namespace std; const int MAXN =1010; char f[MAXN][MAXN]; int f2[MAXN][MAXN]; int dir[4][2] = {{0,1},{1,0},{0,-1},...
2025-04-22
0
23
题解 | 【模板】堆
#include <bits/stdc++.h> using namespace std; priority_queue<int> q;//开个stl大根堆 void show()//输出队首元素 { if(q.empty())cout << "...
2025-04-17
0
9
首页
上一页
1
2
下一页
末页