河婆虚
河婆虚
全部文章
题解
noown(2)
归档
标签
去牛客网
登录
/
注册
河婆虚的博客
recyclebin
全部文章
/ 题解
(共13篇)
题解 | #[NOIP2016]回文日期# 运用库函数
思路: 通过判断当前年份逆序后是否依旧合法即可 ps:好像数据有点问题,没有考虑月份和天数的起始问题也ac掉这题目了 #include<bits/stdc++.h> #define io ios::sync_with_stdio(false);cin.tie(0);cout.tie(0)...
2022-05-24
0
442
题解 | #[NOIP2007]纪念品分组#双指针
#include<bits/stdc++.h> #define io ios::sync_with_stdio(false);cin.tie(0);cout.tie(0) using namespace std; typedef long long int ll; typedef pai...
2022-05-24
0
396
题解 | #[NOIP2007]字符串的展开#模拟
没什么技术含量的模拟 #include<bits/stdc++.h> #define io ios::sync_with_stdio(false);cin.tie(0);cout.tie(0) using namespace std; typedef long long int ll; ...
C++
模拟
2022-04-27
0
376
题解 | #切糕#
#include<bits/stdc++.h> #define io ios::sync_with_stdio(false);cin.tie(0);cout.tie(0) using namespace std; typedef long long int ll; typedef pai...
C++
栈
2022-04-25
0
371
题解 | #E : 好串#
**思路: 碰到'a'或者此时空栈 -》》字符入栈 碰到'b'并且此时非空栈-》》不符合题意,终止判断 检测完毕 -》》排除是否此时为空栈(符合题意的字符串此时栈一定为空)** #include<bits/stdc++.h> #define io ios::sync_with_stdio...
栈
2022-04-25
0
411
题解 | #FBI树# DFS
Acwing- yxc视频讲解 https://www.acwing.com/video/499/ #include<bits/stdc++.h> using namespace std; int n; string s; void dfs(string str) { if(st...
C++
深度优先搜索
字符串
2022-04-25
0
375
题解 | #兔子的序列# 二分
#include<bits/stdc++.h> #define io ios::sync_with_stdio(false);cin.tie(0);cout.tie(0) using namespace std; typedef long long int ll; typedef pai...
C++
二分查找
2022-04-19
0
261
题解 | #部分题目#题号1009,1011,1012,1013,1034,1041,1051
课程满意度计算 #include<bits/stdc++.h> #define io ios::sync_with_stdio(false);cin.tie(0);cout.tie(0) using namespace std; typedef long long int ll; typ...
C++
哈希表
STL
2022-04-11
0
467
。。两道几乎一模一样的题,参考大佬的代码
家庭作业 #include<bits/stdc++.h> #define io ios::sync_with_stdio(false);cin.tie(0);cout.tie(0) using namespace std; typedef long long int ll; typede...
C++
贪心
2022-04-09
0
405
题解 分组背包模板题目
#include<bits/stdc++.h> using namespace std; const int N = 1010; int f[N]; int v[N][N],w[N][N]; int s[N]; int n,m; int t; int main() { cin&g...
动态规划
2022-03-10
1
458
首页
上一页
1
2
下一页
末页