結果

問題 No.481 1から10
ユーザー bob___wbob___w
提出日時 2017-02-17 20:24:09
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 335 bytes
コンパイル時間 5,200 ms
コンパイル使用メモリ 72,176 KB
実行使用メモリ 57,692 KB
最終ジャッジ日時 2023-08-29 21:51:09
合計ジャッジ時間 5,592 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
56,420 KB
testcase_01 AC 117 ms
55,800 KB
testcase_02 AC 115 ms
56,564 KB
testcase_03 AC 118 ms
56,024 KB
testcase_04 AC 116 ms
56,036 KB
testcase_05 AC 118 ms
57,692 KB
testcase_06 AC 118 ms
55,780 KB
testcase_07 AC 116 ms
56,048 KB
testcase_08 AC 117 ms
53,756 KB
testcase_09 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Test15 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String ss = sc.nextLine();

		String[]s =ss.split(" ");
		int c=1;
		for(int i=1;i<=10;i++){
			int a = Integer.parseInt(s[i-1]);
			if(a!=c){
				System.out.println(a-1);
				break;
			}
			c++;
		}
	}
}
0