#include<stdio.h> float max(float x,float y){ float z=x>y?x:y; return z; } int main() { float a, b, c, t; scanf("%f%f%f", &a, &b, &c); if(a>b){t=a;a=b;b=t;} if(a>c){t=a;a=c;c=t;} if(b>c){t=b;b=c;c=t;} printf("%.0f\n", c); printf("%.0f\n", max(a,max(b,c))); return 0; }
时间: 2024-10-25 06:21:57