結果

問題 No.481 1から10
ユーザー face4face4
提出日時 2018-04-16 21:34:50
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 485 bytes
コンパイル時間 3,361 ms
コンパイル使用メモリ 71,020 KB
実行使用メモリ 49,828 KB
最終ジャッジ日時 2023-09-09 10:57:34
合計ジャッジ時間 3,693 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
49,236 KB
testcase_01 AC 44 ms
49,672 KB
testcase_02 AC 44 ms
49,440 KB
testcase_03 AC 43 ms
49,100 KB
testcase_04 AC 43 ms
49,140 KB
testcase_05 AC 43 ms
49,252 KB
testcase_06 AC 44 ms
49,240 KB
testcase_07 AC 44 ms
49,360 KB
testcase_08 AC 44 ms
49,352 KB
testcase_09 RE -
権限があれば一括ダウンロードができます

ソースコード

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 <= 10; i++){
            if(Integer.parseInt(input[i-1]) != i){
                System.out.println(i);
                return;
            }
        }
    }
}
0