結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,996 KB
testcase_01 AC 116 ms
55,780 KB
testcase_02 AC 117 ms
56,280 KB
testcase_03 AC 115 ms
56,736 KB
testcase_04 AC 114 ms
56,276 KB
testcase_05 AC 115 ms
56,116 KB
testcase_06 AC 115 ms
56,120 KB
testcase_07 AC 115 ms
55,772 KB
testcase_08 AC 114 ms
55,808 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);

        int i = 1;

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

        System.out.println(i);

        in.close();
    }
}
0