dreamta1e
dreamta1e
全部文章
分类
题解(2)
归档
标签
去牛客网
登录
/
注册
dreamta1e的博客
全部文章
(共3篇)
题解 | #牛牛的二叉树问题#
/** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullpt...
2023-08-23
0
249
思考
不考虑闰年的话,就考虑输入的是月末和年末两种边界情况了 #include <iostream> #include <cstdio> using namespace std; int monthtab[13]={0,31,28,31,30,31,30,31,31,30,31...
2021-01-14
1
417
日期差值暴力模拟
#include <iostream> #include <cstdio> using namespace std; bool IsLeapYear(int year){ return (year % 4 == 0 && year % 100 !=...
2021-01-14
0
489