結果

問題 No.481 1から10
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2017-02-10 22:23:06
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 328 bytes
コンパイル時間 2,280 ms
コンパイル使用メモリ 71,952 KB
実行使用メモリ 55,848 KB
最終ジャッジ日時 2023-08-27 21:19:55
合計ジャッジ時間 4,262 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,760 KB
testcase_01 AC 123 ms
55,504 KB
testcase_02 AC 126 ms
55,512 KB
testcase_03 AC 126 ms
55,752 KB
testcase_04 AC 124 ms
55,848 KB
testcase_05 AC 123 ms
55,420 KB
testcase_06 AC 123 ms
55,440 KB
testcase_07 AC 122 ms
55,452 KB
testcase_08 AC 124 ms
55,552 KB
testcase_09 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        for(int i=1; i<=10; i++){
            int tmp = sc.nextInt();
            if(tmp!=i){
                System.out.println(i);
                System.exit(0);
            }
        }
    }
}
0