郑州轻工业大学OJ:java1038
作者:互联网
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int a;
int b;
int c;
int a1;
int b1;
int c1;
int s;
Scanner in=new Scanner(System.in);
a=in.nextInt();
b=in.nextInt();
c=in.nextInt();
a1=Math.abs(a);
b1=Math.abs(b);
c1=Math.abs©;
s=Math.max(a1, Math.max(b1, c1));
if(a1!=b1&a1!=c1&b1!=c1) {
if(sa1) {
System.out.println(a);
}
if(sb1) {
System.out.println(b);
}
if(sc1) {
System.out.println©;
}
}else {
if(a1b1&b1c1) {
System.out.println(a);
}
if(a1b1&b1!=c1) {
if(sa1) {
System.out.println(a);
}else {
System.out.println©;
}
}
if(a1c1&a1!=b1) {
if(sa1) {
System.out.println(a);
}else {
System.out.println(b);
}
}
if(b1c1&b1!=a1) {
if(s==a1) {
System.out.println(a);
}else {
System.out.println(b);
}
}
}
}
}
标签:OJ,int,System,a1,轻工业,b1,println,java1038,out 来源: https://blog.csdn.net/weixin_45065220/article/details/91126579