結果

問題 No.481 1から10
ユーザー GodNegotoGodNegoto
提出日時 2019-11-01 15:18:08
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 349 bytes
コンパイル時間 3,994 ms
コンパイル使用メモリ 73,048 KB
実行使用メモリ 56,068 KB
最終ジャッジ日時 2023-10-13 00:48:39
合計ジャッジ時間 5,503 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
55,388 KB
testcase_01 AC 129 ms
55,688 KB
testcase_02 AC 128 ms
55,940 KB
testcase_03 AC 127 ms
55,976 KB
testcase_04 AC 126 ms
56,068 KB
testcase_05 AC 129 ms
55,928 KB
testcase_06 AC 127 ms
55,728 KB
testcase_07 AC 128 ms
55,676 KB
testcase_08 AC 128 ms
56,016 KB
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class sample6 {
	public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	List<Integer> list = new ArrayList<Integer>();
	for(int i=0; i < 9; i++) {
		list.add(sc.nextInt());
	}
	for(int i=0; i<9; i++) {
		if(i+1 == list.get(i)) {
			
		}
		else {
			System.out.println(i+1);
			break;
		}
	}
	}
}
0