1 条题解
-
0
C :
#include <stdio.h> int main(void) { double a, b, c; scanf("%lf%lf%lf", &a, &b, &c); if(a > b && a > c) printf("%.2lf", a); if(b > a && b > c) printf("%.2lf", b); else printf("%.2lf", c); return 0; }
C++ :
#include<cstdio> using namespace std; int main() { double a,b,c; scanf("%lf%lf%lf",&a,&b,&c); if(a>=b&&a>=c) { printf("%.2lf",a); } else if(b>=a&&b>=c) { printf("%.2lf",b); } else { printf("%.2lf",c); } return 0; }
Pascal :
program zcczjyx; var a,b,c:real; begin read(a,b,c); if (a>=b) and (a>=c) then write(a:0:2) else if (a<=b) and (b>=c) then write(b:0:2) else write(c:0:2); end.
- 1
信息
- ID
- 2921
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- (无)
- 标签
- 递交数
- 0
- 已通过
- 0
- 上传者