JXH001
JXH001
全部文章
分类
归档
标签
去牛客网
登录
/
注册
JXH001的博客
全部文章
(共32篇)
题解 | #成绩排序#
#include<iostream> #include<algorithm> using namespace std; typedef struct { int number; int grade; }student; bool comp(student left,st...
2024-02-13
0
176
题解 | #排序#
#include <stdio.h> #include<iostream> #include <algorithm> #include<cstdio> using namespace std; int main() { int a[101]; in...
2024-02-13
0
158
题解 | #Grading#
#include <iostream> using namespace std; double max(int a, int b, int c) { int temp = 0; if (a > b) { temp = a; } else te...
2024-02-13
0
220
题解 | #xxx定律#
#include <iostream> using namespace std; int main() { int n; while (cin >> n) { int num = 0; while (n != 1) { if (n % 2 == 0) ...
2024-02-13
0
183
题解 | #手机键盘#
#include <iostream> #include<string> using namespace std; int main() { char phone [8][5] = { "abc", "def", "g...
2024-02-13
0
196
题解 | #剩下的树#
#include <iostream> using namespace std; int main() { int L, M; int a[10001] = { 0 }; scanf("%d %d", &L, &M); for (int i =...
2024-02-13
0
182
题解 | #Day of Week#
#include <iostream> using namespace std; int isleap(int year) { if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) { return ...
2024-02-12
0
231
题解 | #日期差值#
#include <iostream> using namespace std; int a[13] = { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; int main() { int time = 0; i...
2024-02-12
0
210
题解 | #打印日期#
#include <iostream> #include<cstdio> using namespace std; int main() { int year, num; while (scanf("%d %d", &year, &...
2024-02-12
0
150
题解 | #日期累加#
#include <iostream> using namespace std; int main() { int a[13] = { 0,31,29,31,30,31,30,31,31,30,31,30,31,}; int time, year, mon, day, num; s...
2024-02-12
0
174
首页
上一页
1
2
3
4
下一页
末页