結果

問題 No.481 1から10
ユーザー Gchansanjou
提出日時 2018-02-11 19:04:17
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 578 bytes
コンパイル時間 3,365 ms
コンパイル使用メモリ 74,064 KB
実行使用メモリ 37,092 KB
最終ジャッジ日時 2024-11-17 12:13:09
合計ジャッジ時間 4,501 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other AC * 1 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukiCoder;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No00481 {

	public static void main(String[] args) {
		BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
		String[] input = new String[9];

		try {
			input = bufferedReader.readLine().split(" ");
			for(int i = 1; i < 10 ; i++) {
				if (Integer.parseInt(input[i-1]) != i) {
					System.out.println(i);
					break;
				}
			}
			System.out.println(10);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
0