結果

問題 No.481 1から10
ユーザー ThhG_9l3ThhG_9l3
提出日時 2018-05-05 15:10:45
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 373 bytes
コンパイル時間 4,909 ms
コンパイル使用メモリ 71,088 KB
実行使用メモリ 56,192 KB
最終ジャッジ日時 2023-09-10 10:32:22
合計ジャッジ時間 5,824 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
56,176 KB
testcase_01 AC 124 ms
55,828 KB
testcase_02 AC 124 ms
55,780 KB
testcase_03 AC 122 ms
55,748 KB
testcase_04 AC 126 ms
55,948 KB
testcase_05 AC 124 ms
55,972 KB
testcase_06 AC 127 ms
55,660 KB
testcase_07 AC 125 ms
56,192 KB
testcase_08 AC 124 ms
55,932 KB
testcase_09 AC 126 ms
55,964 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukikoda;
import java.util.Scanner;
public class no481 {
	public static void main(String[] args) {
		int[] num = new int[9];
		int number = 10;
		Scanner sc = new Scanner(System.in);

		for(int i=0; i<9; i++) {
			num[i] = sc.nextInt();
		}

		for(int j=1; j<=9; j++) {
			if(num[j-1] != j) {
				number = j;
				break;
			}
		}

		System.out.println(number);
	}
}
0