WasserSingen
WasserSingen
全部文章
分类
归档
标签
去牛客网
登录
/
注册
WasserSingen的博客
全部文章
(共9篇)
题解 | 冰冻青蛙
//神奇的37是999的约数,当n>37时无论n为何值都只需要将n和37换个位置即可#include <iostream>using namespace std;int main() { ios::sync_with_stdio(false);cout.tie(0); ...
2026-04-22
1
13
题解 | 小苯的最大和
//依旧是极简代码,新手一看就会#include <bits/stdc++.h>using namespace std;using ll = long long;int main() { int t;cin >> t; while (t--) { i...
2026-04-20
1
13
题解 | 宵暗的妖怪
//依旧是极简代码,新手一看就会#include <bits/stdc++.h>using namespace std;using ll=long long;int main() { int n;cin>>n; vector<ll>dp(n,0); ...
2026-04-19
1
14
题解 | 【模板】差分
#include <iostream> using namespace std; int main() { int n,q;cin>>n>>q; int a,c;long long b[n]; cin>>a;b[0]=a; ...
2026-04-19
1
20
题解 | 最大子数组和
//新手最易上手的方法#include <iostream>using namespace std;int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);//加速输入输出可省略 int ...
2026-04-17
1
27
题解 | 小红走矩阵
#include <iostream> #include <vector> #include <algorithm> using namespace std; const int MOD = 998244353; int main() { int n, ...
2026-04-17
1
15
题解 | 跳台阶
#include <iostream> using namespace std; const int MOD=998244353; //新手最易上手的方法 int main() { int n;cin>>n; int dp=1,dp1=1,dp2=1; ...
2026-04-17
1
18
题解 | 数字三角形
#include <bits/stdc++.h> using namespace std; //新手最易上手的方法 int main() { int n; cin >> n; vector<vector<int>>a(n + 1...
2026-04-17
1
14
题解 | 矩阵的最小路径和
#include <bits/stdc++.h> using namespace std; //新手最易上手的方法 int main() { int n,m;cin>>n>>m; vector<vector<int>>a(n...
2026-04-17
1
18