河婆虚
河婆虚
全部文章
分类
noown(2)
题解(13)
归档
标签
去牛客网
登录
/
注册
河婆虚的博客
recyclebin
全部文章
(共14篇)
题解 | #[NOIP2016]回文日期# 运用库函数
思路: 通过判断当前年份逆序后是否依旧合法即可 ps:好像数据有点问题,没有考虑月份和天数的起始问题也ac掉这题目了 #include<bits/stdc++.h> #define io ios::sync_with_stdio(false);cin.tie(0);cout.tie(0)...
2022-05-24
0
443
题解 | #[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
397
题解 | #[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
378
题解 | #切糕#
#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
373
题解 | #E : 好串#
**思路: 碰到'a'或者此时空栈 -》》字符入栈 碰到'b'并且此时非空栈-》》不符合题意,终止判断 检测完毕 -》》排除是否此时为空栈(符合题意的字符串此时栈一定为空)** #include<bits/stdc++.h> #define io ios::sync_with_stdio...
栈
2022-04-25
0
414
题解 | #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
377
仅对题解代码做注释 中序序列
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param n int 二叉树节点数量 * @param pre intvector 前序...
C++
2022-04-21
0
384
题解 | #兔子的序列# 二分
#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
266
题解 | #部分题目#题号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
470
。。两道几乎一模一样的题,参考大佬的代码
家庭作业 #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
408
首页
上一页
1
2
下一页
末页