結果

問題 No.481 1から10
ユーザー losiz17
提出日時 2017-04-21 23:56:41
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 298 bytes
コンパイル時間 4,265 ms
コンパイル使用メモリ 79,964 KB
実行使用メモリ 45,696 KB
最終ジャッジ日時 2024-07-21 06:09:59
合計ジャッジ時間 5,756 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 7 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

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

}
0