結果

問題 No.481 1から10
ユーザー eagleeagle
提出日時 2022-05-26 15:38:50
言語 Java21
(openjdk 21)
結果
AC  
実行時間 132 ms / 2,000 ms
コード長 414 bytes
コンパイル時間 2,056 ms
コンパイル使用メモリ 78,732 KB
実行使用メモリ 57,572 KB
最終ジャッジ日時 2023-10-20 19:28:30
合計ジャッジ時間 4,032 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
57,416 KB
testcase_01 AC 130 ms
57,572 KB
testcase_02 AC 130 ms
56,960 KB
testcase_03 AC 131 ms
57,476 KB
testcase_04 AC 131 ms
57,340 KB
testcase_05 AC 132 ms
57,316 KB
testcase_06 AC 130 ms
57,220 KB
testcase_07 AC 132 ms
57,344 KB
testcase_08 AC 131 ms
57,412 KB
testcase_09 AC 131 ms
57,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int[] B = new int[9];
		for(int i = 0; i < B.length; i++) {
			B[i] = sc.nextInt();
		}
		int num = 1;
		
		for(int i = 0; i < B.length; i++) {
			if(num != B[i]) {
				break;
			}
			num++;
		}
		System.out.println(num);
	}
}
0