只会签到题
只会签到题
全部文章
题解
归档
标签
去牛客网
登录
/
注册
只会签到题的博客
全部文章
/ 题解
(共4篇)
题解 | #春#
CDE题 C题:构造 #include<bits/stdc++.h> using namespace std; void put0(int x) { while(x>0)cout<<0,x--; } void put1(int x) { while(...
C++
动态规划
2024-12-16
1
35
题解 | #小红的字符串#
D题 暴力bfs遍历找最短路 唯一的变化是,碰到墙后要for循环反向走到对面的墙前即可,遇到终点要提前退出 #include<bits/stdc++.h> #define x first #define y second using namespace std; typedef pai...
C++
C
广度优先搜索
2024-08-12
4
186
题解 | #LCT#
I题 #include<bits/stdc++.h> #define int long long using namespace std; int n,m; vector<int> h[1000005];//邻接表 bool check(int l,int r)//检查r...
C++
2024-07-31
0
141
题解 | #欢迎来到山东理工大学第十六届程序设计竞赛#
H,E题 H题方法一:贪心求上升子序列的最少个数 #include<bits/stdc++.h> using namespace std; int n,m,cnt,a[5005],f[5005]; int main() { cin>>n>>m; ...
C++
数学
动态规划
贪心
2024-05-13
3
241