結果

問題 No.481 1から10
ユーザー マサ
提出日時 2022-02-09 16:14:58
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 298 bytes
コンパイル時間 2,221 ms
コンパイル使用メモリ 73,888 KB
実行使用メモリ 41,488 KB
最終ジャッジ日時 2024-06-24 20:08:37
合計ジャッジ時間 3,860 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 7 RE * 1
権限があれば一括ダウンロードができます

ソースコード

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