結果

問題 No.481 1から10
ユーザー yagi2yagi2
提出日時 2017-04-14 10:54:41
言語 Java21
(openjdk 21)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 565 bytes
コンパイル時間 2,077 ms
コンパイル使用メモリ 71,684 KB
実行使用メモリ 56,400 KB
最終ジャッジ日時 2023-09-25 19:15:41
合計ジャッジ時間 4,111 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
56,080 KB
testcase_01 AC 118 ms
55,704 KB
testcase_02 AC 119 ms
55,320 KB
testcase_03 AC 118 ms
55,944 KB
testcase_04 AC 118 ms
55,964 KB
testcase_05 AC 117 ms
55,684 KB
testcase_06 AC 119 ms
55,600 KB
testcase_07 AC 119 ms
56,400 KB
testcase_08 AC 118 ms
55,372 KB
testcase_09 AC 120 ms
55,972 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        boolean map[];
        map = new boolean[11];
        List<Integer> list = new ArrayList<>();

        Scanner sc = new Scanner(System.in);
        for (int i = 0; i < 9; i++){
            list.add(Integer.parseInt(sc.next()));
            map[list.get(i)] = true;
        }

        for (int i = 1; i <= 10; i++) {
            if (!map[i]) {
                System.out.println(i);
            }
        }
    }
}
0