题解 | #表达式求值#
表达式求值
http://www.nowcoder.com/practice/3e483fe3c0bb447bb17ffb3eeeca78ba
import java.io.; public class Main { public static void main(String[] args) throws IOException{ BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); String[] in = bf.readLine().split(" "); int a = Integer.parseInt(in[0]); int b = Integer.parseInt(in[1]); int c = Integer.parseInt(in[2]); int maxn = Math.max((b+c)a,Math.max(abc,(a+b)*c)); System.out.println(maxn); } }
我居南半坡 文章被收录于专栏
多刷题,积蓄力量,欢迎讨论