結果

問題 No.481 1から10
ユーザー Daigo HIROOKADaigo HIROOKA
提出日時 2018-05-13 22:24:55
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 332 bytes
コンパイル時間 3,687 ms
コンパイル使用メモリ 71,752 KB
実行使用メモリ 56,376 KB
最終ジャッジ日時 2023-09-10 19:34:46
合計ジャッジ時間 5,706 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,620 KB
testcase_01 AC 121 ms
55,416 KB
testcase_02 AC 119 ms
55,752 KB
testcase_03 AC 120 ms
55,688 KB
testcase_04 AC 120 ms
55,616 KB
testcase_05 AC 119 ms
55,736 KB
testcase_06 AC 119 ms
55,780 KB
testcase_07 AC 121 ms
55,960 KB
testcase_08 AC 120 ms
55,820 KB
testcase_09 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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