結果

問題 No.481 1から10
ユーザー yellowstoneyellowstone
提出日時 2017-04-07 15:27:18
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 367 bytes
コンパイル時間 1,921 ms
コンパイル使用メモリ 71,208 KB
実行使用メモリ 56,172 KB
最終ジャッジ日時 2023-09-22 23:59:50
合計ジャッジ時間 3,919 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
56,000 KB
testcase_01 AC 124 ms
55,820 KB
testcase_02 AC 122 ms
56,172 KB
testcase_03 AC 123 ms
55,628 KB
testcase_04 AC 123 ms
55,572 KB
testcase_05 AC 125 ms
55,992 KB
testcase_06 AC 124 ms
55,836 KB
testcase_07 AC 123 ms
55,724 KB
testcase_08 AC 122 ms
55,832 KB
testcase_09 AC 122 ms
55,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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