結果

問題 No.481 1から10
ユーザー ohagi_1182ohagi_1182
提出日時 2017-10-12 21:46:26
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 334 bytes
コンパイル時間 2,108 ms
コンパイル使用メモリ 74,392 KB
実行使用メモリ 41,536 KB
最終ジャッジ日時 2024-04-28 17:09:03
合計ジャッジ時間 4,180 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
41,072 KB
testcase_01 AC 133 ms
41,508 KB
testcase_02 AC 130 ms
41,536 KB
testcase_03 AC 138 ms
41,052 KB
testcase_04 AC 134 ms
41,476 KB
testcase_05 AC 136 ms
41,140 KB
testcase_06 AC 137 ms
41,536 KB
testcase_07 AC 135 ms
41,532 KB
testcase_08 AC 139 ms
41,280 KB
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

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