zephyr05
zephyr05
全部文章
分类
题解(1)
归档
标签
去牛客网
登录
/
注册
zephyr05的博客
全部文章
(共13篇)
题解 | #chika和蜜柑#
#include <iostream> #include <vector> #include <algorithm> using namespace std; int n, k; class CompareRule { public:  ...
2026-03-06
0
17
题解 | 字符串替换
#include <algorithm> class StringFormat { public: string formatString(string A, int n, vector<char> arg, int m) { string ans; ...
2026-02-27
0
22
题解 | 栈的压入、弹出序列
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param pushV int整型vector * @param popV int整型v...
2025-11-04
0
40
题解 | 打印日期 手撕日期类
#include<iostream> using namespace std; class Date { friend ostream& operator<<(ostream& out, const Date& d); friend i...
2025-10-24
0
46
题解 | 日期累加 手撕日期类
#include<iostream> using namespace std; class Date { friend ostream& operator<<(ostream& out, const Date& d); friend i...
2025-10-24
0
33
题解 | 环形链表的约瑟夫问题
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param n int整型 * @param m int整型 * @return int整型 */ struct ListNode* ListInit(struct ListNod...
2025-09-25
0
57
题解 | 序列中删除指定数字
#include <stdio.h> void del_arr(int arr[],int len,int x){ for(int i=0;i<len;i++){ if(arr[i]==x){ for(int j=i;j<len...
2025-09-19
0
52
题解 | 获得月份天数
#include <stdio.h> #include <time.h> int leap_year(int y){ if((y%100!=0&&y%4==0)||y%400==0) return 1; else return 0; } i...
2025-09-16
0
39
题解 | 两个整数二进制位不同个数
#include <stdio.h> int main() { int a, b; int c; int count=0; scanf("%d%d",&a,&b); c=a^b; while(c){ ...
2025-09-11
0
33
题解 | 有序序列合并
#include <stdio.h> int main() { int a, b; int arr1[1001]; int arr2[1001]; scanf("%d%d",&a,&b); for(int i=...
2025-09-08
0
44
首页
上一页
1
2
下一页
末页