結果

問題 No.481 1から10
ユーザー kazapyon27kazapyon27
提出日時 2017-05-07 23:31:09
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 438 bytes
コンパイル時間 3,075 ms
コンパイル使用メモリ 72,132 KB
実行使用メモリ 57,720 KB
最終ジャッジ日時 2023-10-12 16:15:29
合計ジャッジ時間 5,082 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,996 KB
testcase_01 AC 123 ms
55,888 KB
testcase_02 AC 123 ms
55,976 KB
testcase_03 AC 123 ms
54,104 KB
testcase_04 AC 122 ms
56,260 KB
testcase_05 AC 122 ms
55,996 KB
testcase_06 AC 122 ms
56,312 KB
testcase_07 AC 124 ms
57,720 KB
testcase_08 AC 123 ms
56,272 KB
testcase_09 AC 124 ms
56,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/*No.481 1から10*/
import java.util.*;
public class No481 {
	public static void main(String[] args) {
		byte n_hairetsu[]=new byte[9],i;
		try(Scanner input = new Scanner((System.in))){
			for(i=0;i<n_hairetsu.length;i++){
				n_hairetsu[i]=input.nextByte();
			}
			for(i=0;i<n_hairetsu.length;i++){
				if(i+1!=n_hairetsu[i]){
					break;
				}
			}
			System.out.println(i+1);	
		}catch(Exception e){
			e.printStackTrace();
		}
	}
}
0