結果

問題 No.481 1から10
ユーザー syusyu
提出日時 2020-08-25 23:34:01
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 337 bytes
コンパイル時間 2,041 ms
コンパイル使用メモリ 73,948 KB
実行使用メモリ 41,540 KB
最終ジャッジ日時 2024-04-24 04:58:20
合計ジャッジ時間 4,129 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
41,316 KB
testcase_01 AC 131 ms
41,096 KB
testcase_02 AC 133 ms
41,280 KB
testcase_03 AC 130 ms
41,540 KB
testcase_04 AC 131 ms
41,344 KB
testcase_05 AC 130 ms
41,140 KB
testcase_06 AC 128 ms
41,352 KB
testcase_07 AC 130 ms
41,328 KB
testcase_08 AC 139 ms
41,036 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 number=sc.nextInt();
            if(number != i){
                System.out.println(i);
                break;
            }
        }
        
    }
}
0