結果

問題 No.481 1から10
ユーザー kohaku_kohaku
提出日時 2017-02-10 22:23:06
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 328 bytes
コンパイル時間 6,586 ms
コンパイル使用メモリ 73,740 KB
実行使用メモリ 41,908 KB
最終ジャッジ日時 2024-12-28 05:01:41
合計ジャッジ時間 4,456 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 7 RE * 1
権限があれば一括ダウンロードができます

ソースコード

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 tmp = sc.nextInt();
            if(tmp!=i){
                System.out.println(i);
                System.exit(0);
            }
        }
    }
}
0