結果

問題 No.481 1から10
ユーザー トミートミー
提出日時 2024-04-01 19:05:04
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 420 bytes
コンパイル時間 2,114 ms
コンパイル使用メモリ 74,320 KB
実行使用メモリ 57,836 KB
最終ジャッジ日時 2024-04-01 19:05:08
合計ジャッジ時間 4,326 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
56,676 KB
testcase_01 AC 125 ms
57,700 KB
testcase_02 AC 125 ms
57,704 KB
testcase_03 AC 124 ms
57,836 KB
testcase_04 AC 114 ms
56,688 KB
testcase_05 AC 125 ms
57,820 KB
testcase_06 AC 123 ms
57,828 KB
testcase_07 AC 114 ms
56,676 KB
testcase_08 AC 128 ms
57,700 KB
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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

        sc.close();

    }
}
0