AtCoder Beginner Contest 019

Submission #6904674

Source codeソースコード

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

Task問題 A - 高橋くんと年齢
User nameユーザ名 Yu_212
Created time投稿日時
Language言語 Java8 (OpenJDK 1.8.0)
Status状態 AC
Score得点 100
Source lengthソースコード長 1055 Byte
File nameファイル名
Exec time実行時間 80 ms
Memory usageメモリ使用量 21204 KB

Test case

Set

Set name Score得点 / Max score Cases
Sample - 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

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
0.txt AC 75 ms 19284 KB
1.txt AC 79 ms 20692 KB
10.txt AC 77 ms 17748 KB
11.txt AC 80 ms 21076 KB
12.txt AC 76 ms 21204 KB
13.txt AC 78 ms 18772 KB
14.txt AC 76 ms 21204 KB
15.txt AC 77 ms 18132 KB
16.txt AC 77 ms 21076 KB
17.txt AC 79 ms 20948 KB
18.txt AC 77 ms 21204 KB
19.txt AC 78 ms 21076 KB
2.txt AC 77 ms 17492 KB
3.txt AC 77 ms 21076 KB
4.txt AC 77 ms 19284 KB
5.txt AC 77 ms 21204 KB
6.txt AC 76 ms 18388 KB
7.txt AC 78 ms 21204 KB
8.txt AC 76 ms 19796 KB
9.txt AC 76 ms 17620 KB
subtask0_sample_01.txt AC 78 ms 21076 KB
subtask0_sample_02.txt AC 76 ms 18260 KB
subtask0_sample_03.txt AC 78 ms 20436 KB
subtask0_sample_04.txt AC 78 ms 21076 KB