結果

問題 No.481 1から10
ユーザー マサマサ
提出日時 2022-02-09 16:14:58
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 298 bytes
コンパイル時間 2,405 ms
コンパイル使用メモリ 71,064 KB
実行使用メモリ 58,140 KB
最終ジャッジ日時 2023-09-07 01:31:54
合計ジャッジ時間 4,162 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,844 KB
testcase_01 AC 125 ms
56,180 KB
testcase_02 AC 124 ms
53,788 KB
testcase_03 AC 125 ms
55,840 KB
testcase_04 AC 123 ms
55,608 KB
testcase_05 AC 125 ms
55,696 KB
testcase_06 AC 123 ms
56,088 KB
testcase_07 AC 122 ms
56,020 KB
testcase_08 AC 123 ms
56,120 KB
testcase_09 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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