JXH001
JXH001
全部文章
分类
归档
标签
去牛客网
登录
/
注册
JXH001的博客
全部文章
(共32篇)
题解 | 日期差值
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> using namespace std; int daymonth[13] = { 0,31,29,31,30,31,30,31,31,30,31,30,31 }; int leapye...
2025-02-25
0
37
题解 | 日期累加
#include<stdio.h> using namespace std; int daymonth[13] = { 0,31,29,31,30,31,30,31,31,30,31,30,31 }; int isleapyear(int year) { return(year % 4...
2025-02-25
0
33
题解 | #完数与盈数#
#include <iostream> #include<vector> #include<cstdio> using namespace std; int main() { vector<int>arr1; vector<int>ar...
2024-02-19
0
249
题解 | #String Matching#
#include<iostream> #include<string> using namespace std; int nextable[1000]; void getnext(string a, int n1) { int j = 0; nextable[j] = ...
2024-02-19
0
265
题解 | #单词替换#
#include<string> #include<iostream> using namespace std; int main() { string s1,s2,s3; string n = " "; while (getline(cin, s1...
2024-02-17
0
214
题解 | #首字母大写#
#include <iostream> #include<string> using namespace std; int main() { string s; while (getline(cin, s)) { int n = s.size(); if (...
2024-02-17
0
223
题解 | #Skew数#
#include<iostream> #include<string> using namespace std; int D(char a, int n) { int c = 1; int temp = a - '0'; for (int i = 0; i < n...
2024-02-16
0
243
题解 | #字母统计#
#include<string> #include<iostream> #include<cstdio> using namespace std; typedef struct { char k; int num; }T; int main() { T ar...
2024-02-16
0
210
题解 | #统计字符#
#include<iostream> #include<string> #include<cstdio> using namespace std; int main() { string s1, s2; while (getline(cin, s1)) { ...
2024-02-16
0
284
题解 | #简单密码#
#include<iostream> #include<string> #include<cstdio> using namespace std; int main() { string s1; while (getline(cin,s1)) { if ...
2024-02-16
0
205
首页
上一页
1
2
3
4
下一页
末页