結果

問題 No.481 1から10
ユーザー aaaaasatoriaaaaasatori
提出日時 2018-02-05 11:06:45
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 322 bytes
コンパイル時間 3,003 ms
コンパイル使用メモリ 71,456 KB
実行使用メモリ 56,468 KB
最終ジャッジ日時 2023-09-20 20:44:39
合計ジャッジ時間 4,939 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,820 KB
testcase_01 AC 118 ms
56,308 KB
testcase_02 AC 117 ms
55,928 KB
testcase_03 AC 118 ms
55,956 KB
testcase_04 AC 121 ms
55,948 KB
testcase_05 AC 119 ms
56,016 KB
testcase_06 AC 121 ms
56,468 KB
testcase_07 AC 119 ms
56,060 KB
testcase_08 AC 122 ms
56,040 KB
testcase_09 AC 120 ms
55,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No481 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int t[] = new int[9];
		int i;
		
		for(i = 0;i < 9;i++) {
			t[i] = sc.nextInt();
		}
		
		for(i = 1;i <= 9;i++) {
			if(t[i - 1] != i) {
				break;
			}
		}
		
		System.out.println(i);
	}
}
0