ZyWoOoO
ZyWoOoO
全部文章
分类
归档
标签
去牛客网
登录
/
注册
ZyWoOoO的博客
全部文章
(共21篇)
题解 | [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
28
题解 | 合并回文子串
#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
38
题解 | 小红取数
#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
34
题解 | 字母收集
#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
28
题解 | 点击消除
#include <bits/stdc++.h> using namespace std; const int MAXN = 300000 + 10; // 用数组模拟栈,存储字符 char st[MAXN]; // 栈顶指针,初始可看作栈为空 int top; int main() ...
2025-04-22
0
27
题解 | 走迷宫
#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
42
题解 | 【模板】堆
#include <bits/stdc++.h> using namespace std; priority_queue<int> q;//开个stl大根堆 void show()//输出队首元素 { if(q.empty())cout << "...
2025-04-17
0
23
题解 | 自守数
#include <bits/stdc++.h> using namespace std; int f[1000]; int main() { int n; cin >> n; int ans = 1; // 初始化答案计数器为1,因为1是一个...
2025-04-17
0
38
题解 | 小红走网格
#include <bits/stdc++.h> // for gcd in C++17 using namespace std; // 如果您使用的编译器不支持 C++17 的 std::gcd,可以手动实现 gcd 函数 int gcd(int a, int b) { ret...
2025-04-17
0
36
题解 | 数独数组
#include <bits/stdc++.h>using namespace std;int f[998];int main(){ int n;cin >> n; for(int i = 1;i<=n;i++) { int x;cin ...
2025-04-16
0
32
首页
上一页
1
2
3
下一页
末页