俊俏后生a
俊俏后生a
全部文章
分类
归档
标签
去牛客网
登录
/
注册
俊俏后生a的博客
全部文章
(共11篇)
题解 | 求小球落地5次后所经历的路程和第5次反弹的高度
#include <cmath> #include <iostream> using namespace std; int main() { int high; cin>>high; double s=0.0; double h=...
2025-04-04
0
32
题解 | 倒置字符串
#include <algorithm> #include <iostream> #include <string> #include <vector> using namespace std; int main() { string str...
2025-04-04
0
40
题解 | 字符串中找出连续最长的数字串
#include <iostream> using namespace std; int main() { string s; cin>>s; string ret; string tmp; for(int i=0;i<s.si...
2025-04-04
0
33
题解 | 字符串变形
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param s string字符串 * @param n int整型 * @...
2025-03-22
0
41
题解 | 最长公共前缀
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param strs string字符串vector * @return string字...
2025-03-22
0
45
题解 | 链表中环的入口结点
/* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } }; */ #include <unordered_map...
2025-03-15
0
33
题解 | 链表合并
#include <iostream> #include <list> using namespace std; int main() { list<int> l1; list<int> l2; list<int>...
2025-03-15
0
44
题解 | #打印日期#
#include <iostream> using namespace std; class Date { public: Date(int y = 1, int m = 1, int d = 1) { _year = y; _month =...
2024-02-04
0
126
题解 | #日期差值#
#include <climits> #include <iostream> using namespace std; class Date { public: Date(int year, int month, int day) { _year...
2024-02-04
0
112
题解 | #计算日期到天数转换#
#include <iostream> using namespace std; int Count = 0; class Date { public: Date(int year = 1, int month = 1, int day = 1) { _year = year;...
2024-02-04
0
155
首页
上一页
1
2
下一页
末页