孤叶123
孤叶123
全部文章
分类
题解(50)
归档
标签
去牛客网
登录
/
注册
孤叶123的博客
全部文章
(共49篇)
题解 | #字母大小写转换#
#include <stdio.h> int main() { char a = 0; while (scanf("%c", &a) != EOF) { getchar(); if (a>='a' && a<='z') printf("%c\n", a...
C
2021-11-13
0
263
题解 | #判断是不是字母#
#include <stdio.h> int main() { char a = 0; while (scanf("%c", &a) != EOF) { getchar(); if ((a>='a' && a<='z') || (a>='A' &...
C
2021-11-13
0
264
题解 | #判断是元音还是辅音#
#include <stdio.h> int main() { char a = 0; while (scanf("%c", &a) != EOF) { getchar(); if (a=='A' || a=='a' || a=='E' || a=='e' || a=='I' |...
C
2021-11-13
0
220
题解 | #最高分数#
#include <stdio.h> void get_max(int* x, int* y) { if (*x < *y) { int tmp = *x; *x = *y; *y = tmp; } } int main() { int a = 0; int b = 0; int ...
C
2021-11-13
1
0
题解 | #判断整数奇偶性#
#include <stdio.h> int main() { long long x = 0; while(scanf("%lld", &x) != EOF) { if (x % 2 == 0) printf("Even\n"); else printf("Odd\n"); }...
C
2021-11-13
0
0
题解 | #总成绩和平均分计算#
#include <stdio.h> int main() { double a = 0; double b = 0; double c = 0; double x = 0; double y = 0; scanf("%lf %lf %l...
C
2021-10-27
0
339
题解 | #时间转换#
#include <stdio.h> int main() { int seconds,h,m,s; scanf("%d", &seconds); h=seconds/3600; m=seconds%3600/60; s=seconds%3...
C
2021-10-26
0
321
题解 | #你能活多少秒#
#include <stdio.h> #include <math.h> int main() { int a; long long b; scanf("%d", &a); b=a*31560000; printf("%lld\...
C
2021-10-26
2
490
题解 | #浮点数的个位数字#
#include <stdio.h> int main() { int a=0; double n=0; scanf("%lf", &n); a=((int)n)%10; printf("%d\n", a); return 0; }
C
2021-10-26
0
324
题解 | #kiki算数#
#include <stdio.h> int main() { int a,b; scanf("%d %d",&a,&b); int c=a+b; int x=c%10; int y=(c-x)/10%10; if(y==0...
C
2021-10-24
0
352
首页
上一页
1
2
3
4
5
下一页
末页