MrMello
MrMello
全部文章
分类
归档
标签
去牛客网
登录
/
注册
MrMello的博客
全部文章
(共22篇)
题解 | #今年的第几天?#
#include <stdio.h> int main(){ int Month[13] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int year, month, day; while (scanf(...
2023-03-23
2
332
题解 | #求最大最小数#
#include <stdio.h> int main(){ int N; while (scanf("%d", &N) != EOF){ long long num[N]; scanf("%lld", &num[0]); ...
2023-03-23
1
305
题解 | #成绩排序#
#include <stdio.h> int main(){ int number, way; while (scanf("%d %d", &number, &way) != EOF){ //定义一个student结构体,包含学号和成绩 s...
2023-03-23
2
334
题解 | #成绩排序#
#include <stdio.h> int main(){ int number; scanf("%d", &number); //定义一个student结构体,包含学号和成绩 struct student{ int num; ...
2023-03-23
1
342
题解 | #手机键盘#
#include <stdio.h> #include <string.h> int map(char x){ if(x=='a' || x=='d' || x=='g' || x=='j' || x=='m' || x=='p' || x=='t' || x=='...
2023-03-23
1
336
题解 | #反序输出#
#include <stdio.h> #include <string.h> int main(){ char str[20]; while (scanf("%s", str) != EOF){ int len = strlen(str); ...
2023-03-23
1
310
题解 | #数字之和#
#include <stdio.h> void func(long x){ char remain[10] = "0"; int i = 0; while (x != 0){ remain[i] = x % 10; i++; ...
2023-03-17
1
356
题解 | #三角形的边#
#include <stdio.h> int min(int x, int y, int z){ int min = x; if (y < min) min = y; if (z < min) min = z; return mi...
2023-03-17
1
465
题解 | #字符串的反码#
#include <stdio.h> #include <string.h> int main(){ char text[81] = {0}; gets(text); int len = strlen(text); char reverse[l...
2023-03-17
1
318
题解 | #计算两个矩阵的乘积#
#include <stdio.h> int main(){ int matrix1[2][3]; int matrix2[3][2]; //输入 for (int i = 0; i < 2; ++i) { for (int j = ...
2023-03-17
1
395
首页
上一页
1
2
3
下一页
末页