孤叶123
孤叶123
全部文章
题解
归档
标签
去牛客网
登录
/
注册
孤叶123的博客
全部文章
/ 题解
(共46篇)
题解 | #简单计算器#
#include <stdio.h> int main() { double x = 0; double y = 0; char a = 0; scanf("%lf%c%lf", &x, &a, &y); if (a == '+') { printf("%...
C
2021-11-14
0
363
题解 | #获得月份天数#
#include <stdio.h> int main() { int y = 0; int m = 0; while (scanf("%d %d", &y, &m) != EOF) { if (m==1 || m==3 || m==5 || m==7 || m=...
C
2021-11-14
0
284
题解 | #计算一元二次方程#
#include <stdio.h> #include <math.h> int main() { double a = 0; double b = 0; double c = 0; double x = 0; double x1 = 0; double x2 = 0; wh...
C
2021-11-13
0
322
题解 | #衡量人体胖瘦程度#
#include <stdio.h> int main() { int x = 0; int y = 0; double a = 0; double b = 0; while (scanf("%d %d", &x, &y) != EOF) { b = y / 10...
C
2021-11-13
0
505
题解 | #三角形判断#
#include <stdio.h> int main() { double x = 0; double z = 0; double y = 0; while (scanf("%lf %lf %lf", &x, &y, &z) != EOF) { if (...
C
2021-11-13
0
269
题解 | #计算单位阶跃函数#
#include <stdio.h> int main() { double x = 0; while (scanf("%lf", &x) != EOF) { if (x > 0) printf("1\n"); else if (x == 0) printf("0.5\n"...
C
2021-11-13
0
379
题解 | #判断两个数的大小关系#
#include <stdio.h> int main() { int x = 0; int y = 0; while (scanf("%d %d", &x, &y) != EOF) { getchar(); if (x > y) printf("%d>%d\...
C
2021-11-13
0
488
题解 | #字母大小写转换#
#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
首页
上一页
1
2
3
4
5
下一页
末页