麻花蘸豆浆
麻花蘸豆浆
全部文章
分类
题解(30)
归档
标签
去牛客网
登录
/
注册
麻花蘸豆浆的博客
全部文章
(共29篇)
判断奇偶
include<stdio.h> main(){int n;scanf("%d",&n);if(n%2)printf("odd"); else printf("even");}
2020-02-08
0
534
加法模拟器
include<stdio.h> main(){int a,b;scanf("%d %d",&a,&b);printf("%d+%d=%d\n",a,b,a+b);printf("%7d\n+%6d\n-------\n%7d",a,b,a+b);}//格式控制符控制数据...
2020-02-08
6
835
四舍五入
include<stdio.h> main(){int n,m;scanf("%d",&n);m=(n+5)/10*10;printf("%d",m);}
2020-02-08
21
878
温度转换
include<stdio.h> main(){double f,c;scanf("%lf",&f);c=(double)5/9*(f-32);printf("%.3lf",c);}
2020-02-08
0
635
平方根
include<stdio.h> include<math.h> main(){int n,m; scanf("%d",&n);m=sqrt(n); //整形数据间的运算本身就包含向下取整printf("%d",m);}
2020-02-08
3
706
上下取整
include<stdio.h> include<math.h> main(){double a; int down,up;scanf("%lf",&a); down=floor(a); up=ceil(a);printf("%d\n%d",down,up);}
2020-02-08
0
660
梯形面积
include<stdio.h> main(){int up,down,height;double s; scanf("%d%d%d",&up,&down,&height); s=(double)(up+down)*height/2; printf("%.3f",...
2020-02-07
1
639
分钟计算
include<stdio.h> include<stdlib.h> main(){int a,b,c,d,shicha;scanf("%d%d",&a,&b);scanf("%d%d",&c,&d);shicha=c60+d-(a60+b);...
2020-02-07
0
668
浮点除法
include<stdio.h> main(){int a,b;double c;scanf("%d%d",&a,&b); c=(double)(a)/b;printf("%.3f",c);}
2020-02-07
4
713
首页
上一页
1
2
3
下一页
末页