萤飘碎火
萤飘碎火
全部文章
分类
题解(33)
归档
标签
去牛客网
登录
/
注册
萤飘碎火的博客
全部文章
(共30篇)
题解 | #统计数据正负个数#
int main() { int n, pos = 0, neg = 0; char a; while ((a = scanf("%d", &n)) != -1) { if (n > 0) { po...
C
2022-06-25
2
260
题解 | #牛牛的二三七整除#
int main() { int n , flag = 0; scanf("%d", &n); if (n % 2 == 0) { printf("2 "); flag++; } if (n % 3 == 0) ...
C
2022-06-25
3
228
题解 | #判断是不是字母#
int main() { char a; while( (a = getchar()) != -1) { if (a >= 'A' && a <= 'Z'||a >= 'a' && a <= 'z') ...
C
2022-06-25
1
357
题解 | #小乐乐找最大数#
int main() { int a, b, c, d, max; scanf("%d %d %d %d", &a, &b, &c, &d); max = a > b ? a : b; int maxtemp = c > d...
C
2022-06-25
1
308
题解 | #健康评估#
int main() { float a, b; scanf("%f %f", &a, &b); float bmi = a / (b * b); if (bmi >= 18.5 && bmi <= 23.9) { ...
C
2022-06-25
1
256
题解 | #四季#
int main() { int a; scanf("%d", &a); a = a % 100; if (a >= 3 && a <= 5 ) { printf("spring"); } e...
C
2022-06-25
15
729
题解 | #判断字母#
int main() { char a = getchar(); if (a >= 'A' && a <= 'Z'||a >= 'a' && a <= 'z') { printf("YES");...
C
2022-06-25
1
315
题解 | #判断闰年#
int main() { int n; scanf("%d", &n); if (n % 400 == 0) { printf("yes"); } else if (n % 100 == 0) { pri...
C
2022-06-25
1
312
题解 | #牛牛的判断题#
int main() { int x, l, r; scanf("%d %d %d", &x, &l, &r); if (x >= l && x <=r) { printf("true"); ...
C
2022-06-25
3
275
题解 | #判断是元音还是辅音#
int main() { char a; while((a = getchar()) != EOF) { if (a == 'A' || a == 'a' || a == 'E' || a == 'e' || a == 'I' || a =='i' || a ...
C
2022-06-25
1
268
首页
上一页
1
2
3
下一页
末页