import java.util.Scanner; //抄别人的 import java.text.DecimalFormat; public class Main { static DecimalFormat xx = new DecimalFormat("#0.000"); static final float t(float a,float b,float c){float t=(a>b ? a:b)>(b>c ? b:c) ? (a>b ? a:b):(b>c ? b:c);return t;}; public static float Temp(float a,float b,float c){ float t; t=a>b?a:b; t=t>c?t:c; return t; } public static void main(String[] age){ Scanner in=new Scanner(System.in); float a=in.nextFloat(); float b=in.nextFloat(); float c=in.nextFloat(); System.out.print(xx.format(t(a,b,c))+"\n"+xx.format(Temp(a,b,c))); } }
0.0分
3 人评分