万千少男的梦
万千少男的梦
全部文章
分类
归档
标签
去牛客网
登录
/
注册
万千少男的梦的博客
全部文章
(共67篇)
题解 | #链表中倒数最后k个结点#
/** * struct ListNode { * int val; * struct ListNode *next; * }; */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param pHead ListNode类 ...
2024-04-22
1
27
题解 | #链表中环的入口结点#
/** * struct ListNode { * int val; * struct ListNode *next; * }; */ /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param pHead ListNode类 ...
2024-04-22
1
27
题解 | #判断链表中是否有环#
#include <stdbool.h> /** * struct ListNode { * int val; * struct ListNode *next; * }; */ /** * * @param head ListNode类 * @return bool...
2024-04-22
1
29
题解 | #两数求和#
#include <iostream> using namespace std; int main() { int a = 0,b = 0; cin>>a>>b; cout<<a+b<<endl; ret...
2024-04-21
1
1233
题解 | #实现四舍五入#
#include<iostream> using namespace std; int main() { float n; cin>>n; int tmp = n*10; if((tmp%10)>=5) { tmp...
2024-04-21
1
31
题解 | #日期累加#
#include <iostream> using namespace std; class Date { friend ostream& operator<<(ostream& out, const Date& d); friend istrea...
2024-04-21
1
50
题解 | #打印日期#
#include <iostream> using namespace std; int main() { int _year = 0; int _day = 0; while(scanf("%d%d",&_year,&_day...
2024-04-19
1
34
题解 | #日期差值#
#include <climits> #include <iostream> using namespace std; class Date { //friend ostream& operator<<(ostream& out, const D...
2024-04-17
1
51
题解 | #计算日期到天数转换#
#include <climits> #include <iostream> using namespace std; class Date { //friend ostream& operator<<(ostream& out, const D...
2024-04-17
1
27
题解 | #求1+2+3+...+n#
#include <regex> class Sum { public: Sum() { _ret+=_i; ++_i; } static int GetRet() { return _ret...
2024-04-17
1
34
首页
上一页
1
2
3
4
5
6
7
下一页
末页