結果

問題 No.481 1から10
ユーザー spring
提出日時 2019-06-12 16:02:34
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 372 bytes
コンパイル時間 2,651 ms
コンパイル使用メモリ 74,068 KB
実行使用メモリ 54,352 KB
最終ジャッジ日時 2024-10-10 22:16:29
合計ジャッジ時間 4,299 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 7 WA * 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<=9;i++){
			int input = sc.nextInt();
			if(input==i){
				continue;
			}else if(input==9){
				System.out.println(i);
				break;
			}else{
				System.out.println(i);
				break;
			}
		}
		sc.close();
	}// mainmethod

} // class
0