結果

問題 No.632 穴埋め門松列
ユーザー YOSHIYOSHI
提出日時 2021-03-20 22:15:38
言語 Java21
(openjdk 21)
結果
AC  
実行時間 47 ms / 1,000 ms
コード長 442 bytes
コンパイル時間 2,878 ms
コンパイル使用メモリ 74,316 KB
実行使用メモリ 50,388 KB
最終ジャッジ日時 2024-05-01 08:47:30
合計ジャッジ時間 3,708 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 46 ms
50,168 KB
testcase_01 AC 46 ms
50,296 KB
testcase_02 AC 45 ms
50,220 KB
testcase_03 AC 45 ms
50,164 KB
testcase_04 AC 47 ms
50,200 KB
testcase_05 AC 46 ms
50,388 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No00000632_Main {
	static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	public static void main(String[] args) throws IOException {
		String[] a = br.readLine().split(" ");
		String r = "14";
		if("2".equals(a[1])) {
			r = "4";
		} else if("3".equals(a[1])) {
			r = "1";
		}
		System.out.println(r);
	}
}
0