結果

問題 No.481 1から10
ユーザー matsuyoshi30matsuyoshi30
提出日時 2017-02-19 23:12:47
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 421 bytes
コンパイル時間 2,031 ms
コンパイル使用メモリ 72,544 KB
実行使用メモリ 56,188 KB
最終ジャッジ日時 2023-08-28 19:22:11
合計ジャッジ時間 3,724 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,844 KB
testcase_01 AC 118 ms
55,684 KB
testcase_02 AC 117 ms
55,988 KB
testcase_03 AC 118 ms
55,956 KB
testcase_04 AC 123 ms
55,764 KB
testcase_05 AC 118 ms
55,956 KB
testcase_06 AC 118 ms
55,884 KB
testcase_07 AC 118 ms
55,992 KB
testcase_08 AC 118 ms
56,188 KB
testcase_09 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;

class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);

        for(int i=1; i<11; i++) {
            int x = in.nextInt();
            if(i != x) {
                System.out.println(i);
                break;
            }
        }

        in.close();
    }
}
0