結果

問題 No.481 1から10
ユーザー 37zigen37zigen
提出日時 2017-02-11 01:43:45
言語 Java21
(openjdk 21)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 328 bytes
コンパイル時間 3,714 ms
コンパイル使用メモリ 71,628 KB
実行使用メモリ 56,020 KB
最終ジャッジ日時 2023-08-28 12:41:44
合計ジャッジ時間 5,054 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
53,416 KB
testcase_01 AC 126 ms
55,784 KB
testcase_02 AC 130 ms
55,800 KB
testcase_03 AC 130 ms
56,016 KB
testcase_04 AC 126 ms
55,628 KB
testcase_05 AC 124 ms
56,020 KB
testcase_06 AC 125 ms
55,440 KB
testcase_07 AC 128 ms
55,772 KB
testcase_08 AC 126 ms
55,652 KB
testcase_09 AC 127 ms
55,712 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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