Solution for CCC '07 J1 - Who is in the Middle? in Java 8


Nov. 4, 2019 0.781364 seconds Java 8
import java.io.*;
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        byte[] bowls = {in.nextByte(), in.nextByte(), in.nextByte()};
        Arrays.sort(bowls);
        System.out.println(bowls[1]);
    }
}

Editorial


No editorial for this problem. :(

Original Problem


You can view the original page for this problem on the DMOJ.