結果

問題 No.481 1から10
ユーザー YukimotoPGYukimotoPG
提出日時 2019-02-13 16:44:09
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 304 bytes
コンパイル時間 2,208 ms
コンパイル使用メモリ 71,428 KB
実行使用メモリ 56,164 KB
最終ジャッジ日時 2023-10-11 11:37:27
合計ジャッジ時間 4,232 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,964 KB
testcase_01 AC 122 ms
56,120 KB
testcase_02 AC 126 ms
55,948 KB
testcase_03 AC 126 ms
55,784 KB
testcase_04 AC 122 ms
56,144 KB
testcase_05 AC 124 ms
56,104 KB
testcase_06 AC 124 ms
55,824 KB
testcase_07 AC 124 ms
56,164 KB
testcase_08 AC 126 ms
56,076 KB
testcase_09 AC 126 ms
55,556 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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