結果

問題 No.481 1から10
ユーザー eagleeagle
提出日時 2022-05-26 15:37:05
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 429 bytes
コンパイル時間 2,158 ms
コンパイル使用メモリ 74,796 KB
実行使用メモリ 57,560 KB
最終ジャッジ日時 2023-10-20 19:28:26
合計ジャッジ時間 4,218 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
57,240 KB
testcase_01 AC 130 ms
57,312 KB
testcase_02 AC 130 ms
57,272 KB
testcase_03 AC 129 ms
57,136 KB
testcase_04 WA -
testcase_05 AC 132 ms
57,560 KB
testcase_06 AC 128 ms
57,464 KB
testcase_07 AC 129 ms
57,268 KB
testcase_08 AC 118 ms
56,256 KB
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

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 = B[0];
		for(int i = 1; i < B.length; i++) {
			if(num + 1 != B[i]) {
				num++;
				break;
			}
			num++;
		}
		System.out.println(num);
	}
}
0