Submission #6904674


Source Code Expand

Copy
import java.io.*;
import java.util.*;

class Main {
    static Scanner scanner = new Scanner();

    public static void main(String[]$) throws IOException {
        int[] abc = {scanner.nextInt(), scanner.nextInt(), scanner.nextInt()};
        Arrays.sort(abc);
        System.out.println(abc[1]);
    }

    static class Scanner {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in), 32768);
        StringTokenizer tokenizer;

        String next() throws IOException {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                tokenizer = new StringTokenizer(reader.readLine());
            }
            return tokenizer.nextToken();
        }

        int nextInt() throws IOException {
            return Integer.parseInt(next());
        }

        long nextLong() throws IOException {
            return Long.parseLong(next());
        }

        double nextDouble() throws IOException {
            return Double.parseDouble(next());
        }
    }
}

Submission Info

Submission Time
Task A - 高橋くんと年齢
User Yu_212
Language Java8 (OpenJDK 1.8.0)
Score 100
Code Size 1055 Byte
Status
Exec Time 80 ms
Memory 21204 KB

Judge Result

Set Name Score / Max Score Test Cases
Sample 0 / 0 subtask0_sample_01.txt, subtask0_sample_02.txt, subtask0_sample_03.txt, subtask0_sample_04.txt
All 100 / 100 0.txt, 1.txt, 10.txt, 11.txt, 12.txt, 13.txt, 14.txt, 15.txt, 16.txt, 17.txt, 18.txt, 19.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, 8.txt, 9.txt, subtask0_sample_01.txt, subtask0_sample_02.txt, subtask0_sample_03.txt, subtask0_sample_04.txt
Case Name Status Exec Time Memory
0.txt 75 ms 19284 KB
1.txt 79 ms 20692 KB
10.txt 77 ms 17748 KB
11.txt 80 ms 21076 KB
12.txt 76 ms 21204 KB
13.txt 78 ms 18772 KB
14.txt 76 ms 21204 KB
15.txt 77 ms 18132 KB
16.txt 77 ms 21076 KB
17.txt 79 ms 20948 KB
18.txt 77 ms 21204 KB
19.txt 78 ms 21076 KB
2.txt 77 ms 17492 KB
3.txt 77 ms 21076 KB
4.txt 77 ms 19284 KB
5.txt 77 ms 21204 KB
6.txt 76 ms 18388 KB
7.txt 78 ms 21204 KB
8.txt 76 ms 19796 KB
9.txt 76 ms 17620 KB
subtask0_sample_01.txt 78 ms 21076 KB
subtask0_sample_02.txt 76 ms 18260 KB
subtask0_sample_03.txt 78 ms 20436 KB
subtask0_sample_04.txt 78 ms 21076 KB