JXH001
JXH001
全部文章
分类
归档
标签
去牛客网
登录
/
注册
JXH001的博客
全部文章
(共30篇)
题解 | #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
201
题解 | #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
169
题解 | #手机键盘#
#include <iostream> #include<string> using namespace std; int main() { char phone [8][5] = { "abc", "def", "g...
2024-02-13
0
171
题解 | #剩下的树#
#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
157
题解 | #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
216
题解 | #日期差值#
#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
191
题解 | #打印日期#
#include <iostream> #include<cstdio> using namespace std; int main() { int year, num; while (scanf("%d %d", &year, &...
2024-02-12
0
140
题解 | #日期累加#
#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
162
题解 | #打印日期#
#include <iostream> #include<cstdio> using namespace std; int main() { int year, num; while (scanf("%d %d", &year, &...
2024-02-12
0
155
题解 | #Old Bill#
#include <iostream> #include<stdio.h> using namespace std; int main() { int num, i, j, k; while (scanf("%d", &num)!=EOF) ...
2024-02-02
0
179
首页
上一页
1
2
3
下一页
末页