ZyWoOoO
ZyWoOoO
全部文章
分类
归档
标签
去牛客网
登录
/
注册
ZyWoOoO的博客
全部文章
(共16篇)
题解 | 数位染色
#include <bits/stdc++.h> using namespace std; const int MAXN = 19; bool dp[MAXN][MAXN * 9 + 1];//根据题意开个18层,因为我下标从1开始就定19了,每位数都有9种可能 int main() ...
2025-05-05
0
9
题解 | 小红的排列构造
#include <bits/stdc++.h> using namespace std; #define int long long const int N = 1e5 + 10; signed main() { int n;cin >> n; //当n小于...
2025-05-05
0
8
题解 | 跳台阶
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
13
题解 | [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
15
题解 | 合并回文子串
#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
13
题解 | 点击消除
#include <bits/stdc++.h> using namespace std; const int MAXN = 300000 + 10; // 用数组模拟栈,存储字符 char st[MAXN]; // 栈顶指针,初始可看作栈为空 int top; int main() ...
2025-04-22
0
13
首页
上一页
1
2
下一页
末页