import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int max = max(max(a,b),c);
max = Math.max(max(max(b,c),a),max);
System.out.print(max);
}
public static int max(int a,int b){
return (a+b)>(a*b)?(a+b):(a*b);
}
}
表达式求值
最新推荐文章于 2022-07-02 12:03:53 发布