結果

問題 No.481 1から10
ユーザー トミートミー
提出日時 2024-04-01 19:08:29
言語 Java21
(openjdk 21)
結果
AC  
実行時間 152 ms / 2,000 ms
コード長 413 bytes
コンパイル時間 2,193 ms
コンパイル使用メモリ 73,772 KB
実行使用メモリ 57,844 KB
最終ジャッジ日時 2024-04-01 19:08:47
合計ジャッジ時間 4,465 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
57,820 KB
testcase_01 AC 137 ms
57,844 KB
testcase_02 AC 131 ms
57,596 KB
testcase_03 AC 134 ms
57,832 KB
testcase_04 AC 138 ms
57,836 KB
testcase_05 AC 129 ms
57,684 KB
testcase_06 AC 132 ms
57,828 KB
testcase_07 AC 134 ms
57,572 KB
testcase_08 AC 135 ms
57,812 KB
testcase_09 AC 152 ms
57,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        boolean[] f = new boolean[11];
        for (int i = 0; i != 9; i++) {
            f[sc.nextInt()] = true;
        }
        for (int i = 1; i != 11; i++) {
            if (!f[i]) {
                System.out.println(i);
            }
        }

        sc.close();

    }
}
0