123456789101112131415161718192021222324 |
- import java.util.Scanner;
- /**
- * Created by chshru on 2017/11/4.
- */
- public class F {
- public static void main(String[] args) {
- Scanner cin = new Scanner(System.in);
- while (cin.hasNext()) {
- int a = cin.nextInt();
- int b = cin.nextInt();
- int c = cin.nextInt();
- if (Math.max(a, b) == a && Math.max(a, c) == a)
- System.out.println(Math.max(b, c));
- else if (Math.max(a, b) == b && Math.max(b, c) == b)
- System.out.println(Math.max(a, c));
- else System.out.println(Math.max(a, b));
- }
- cin.close();
- }
- }
|