結果

問題 No.1499 羊が、何匹だっけ
ユーザー game_krbgame_krb
提出日時 2021-05-08 15:01:24
言語 Java21
(openjdk 21)
結果
AC  
実行時間 224 ms / 2,000 ms
コード長 438 bytes
コンパイル時間 2,552 ms
コンパイル使用メモリ 73,216 KB
実行使用メモリ 57,480 KB
最終ジャッジ日時 2023-10-15 02:05:03
合計ジャッジ時間 5,789 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 177 ms
57,352 KB
testcase_01 AC 187 ms
56,940 KB
testcase_02 AC 205 ms
56,968 KB
testcase_03 AC 208 ms
57,312 KB
testcase_04 AC 218 ms
57,480 KB
testcase_05 AC 224 ms
57,300 KB
testcase_06 AC 193 ms
57,084 KB
testcase_07 AC 184 ms
57,172 KB
testcase_08 AC 189 ms
56,984 KB
testcase_09 AC 216 ms
57,100 KB
testcase_10 AC 194 ms
57,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int num = scan.nextInt();
        String hitsuji;
	String ga;
	int n;
	String hiki;
	for(int i = 0; i < num; i++){
	    hitsuji = scan.next();
	    ga = scan.next();
	    n = scan.nextInt();
	    hiki = scan.next();
	    System.out.println(hitsuji+" "+ga+" "+(n+1)+" "+hiki);
        }
    }
}
0