結果

問題 No.481 1から10
ユーザー bob___wbob___w
提出日時 2017-02-17 20:15:34
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 380 bytes
コンパイル時間 6,573 ms
コンパイル使用メモリ 73,380 KB
実行使用メモリ 57,912 KB
最終ジャッジ日時 2023-08-29 21:50:44
合計ジャッジ時間 8,977 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
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君は"+(a-1)+"を書きませんでした。");
				break;
			}
			c++;
		}
	}
}
0