結果

問題 No.481 1から10
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2017-02-10 22:31:24
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 358 bytes
コンパイル時間 1,968 ms
コンパイル使用メモリ 71,316 KB
実行使用メモリ 56,304 KB
最終ジャッジ日時 2023-08-27 22:16:49
合計ジャッジ時間 4,127 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,520 KB
testcase_01 AC 121 ms
55,520 KB
testcase_02 AC 121 ms
55,612 KB
testcase_03 AC 122 ms
55,856 KB
testcase_04 AC 121 ms
55,720 KB
testcase_05 AC 121 ms
55,504 KB
testcase_06 AC 120 ms
53,864 KB
testcase_07 AC 120 ms
55,672 KB
testcase_08 AC 122 ms
53,456 KB
testcase_09 AC 122 ms
56,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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