結果

問題 No.481 1から10
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-09 14:48:40
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 2,000 ms
コード長 306 bytes
コンパイル時間 2,346 ms
コンパイル使用メモリ 74,092 KB
実行使用メモリ 41,592 KB
最終ジャッジ日時 2024-04-16 06:20:47
合計ジャッジ時間 3,947 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
41,432 KB
testcase_01 AC 133 ms
41,592 KB
testcase_02 AC 131 ms
41,264 KB
testcase_03 AC 132 ms
41,244 KB
testcase_04 AC 130 ms
41,448 KB
testcase_05 AC 132 ms
41,168 KB
testcase_06 AC 133 ms
41,360 KB
testcase_07 AC 129 ms
41,508 KB
testcase_08 AC 128 ms
41,212 KB
testcase_09 AC 132 ms
41,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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