孤叶123
孤叶123
全部文章
分类
题解(50)
归档
标签
去牛客网
登录
/
注册
孤叶123的博客
全部文章
(共49篇)
题解 | #直角三角形图案#
#include <stdio.h> int main() { int x = 0; int i = 0; int j = 0; while (scanf("%d", &x) != EOF) { for (i=0; i<x; i++) { f...
C
2021-11-15
0
296
题解 | #正方形图案#
#include <stdio.h> int main() { int x = 0; int i = 0; int j = 0; while (scanf("%d", &x) != EOF) { for (i=0; i<x; i++) { f...
C
2021-11-14
0
0
题解 | #线段图案#
#include <stdio.h> int main() { int x = 0; int i = 0; while (scanf("%d", &x) != EOF) { for (i=0; i<x; i++) { printf("*"); } printf("\n");...
C
2021-11-14
0
231
题解 | #简单计算器#
#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
504
题解 | #三角形判断#
#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
268
题解 | #计算单位阶跃函数#
#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
378
题解 | #判断两个数的大小关系#
#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
首页
上一页
1
2
3
4
5
下一页
末页