結果

問題 No.481 1から10
ユーザー ikawaiikawai
提出日時 2023-09-05 16:42:01
言語 Java21
(openjdk 21)
結果
AC  
実行時間 135 ms / 2,000 ms
コード長 345 bytes
コンパイル時間 2,978 ms
コンパイル使用メモリ 71,020 KB
実行使用メモリ 57,700 KB
最終ジャッジ日時 2023-09-05 16:42:06
合計ジャッジ時間 4,520 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
55,708 KB
testcase_01 AC 135 ms
55,788 KB
testcase_02 AC 133 ms
55,704 KB
testcase_03 AC 133 ms
55,396 KB
testcase_04 AC 134 ms
55,904 KB
testcase_05 AC 132 ms
55,792 KB
testcase_06 AC 133 ms
55,444 KB
testcase_07 AC 131 ms
55,668 KB
testcase_08 AC 132 ms
55,680 KB
testcase_09 AC 131 ms
57,700 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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