結果

問題 No.481 1から10
ユーザー face4face4
提出日時 2018-04-16 21:36:42
言語 Java21
(openjdk 21)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 518 bytes
コンパイル時間 1,916 ms
コンパイル使用メモリ 71,752 KB
実行使用メモリ 49,428 KB
最終ジャッジ日時 2023-09-09 10:57:38
合計ジャッジ時間 3,108 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
49,348 KB
testcase_01 AC 41 ms
49,164 KB
testcase_02 AC 41 ms
49,252 KB
testcase_03 AC 41 ms
49,244 KB
testcase_04 AC 41 ms
49,428 KB
testcase_05 AC 40 ms
49,260 KB
testcase_06 AC 42 ms
49,284 KB
testcase_07 AC 41 ms
49,104 KB
testcase_08 AC 41 ms
49,240 KB
testcase_09 AC 42 ms
49,160 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

class Main{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] input = br.readLine().split(" ");
        for(int i = 1; i <= 9; i++){
            if(Integer.parseInt(input[i-1]) != i){
                System.out.println(i);
                return;
            }
        }
        System.out.println("10");
    }
}
0