結果

問題 No.2722 Kenken Fight
ユーザー ks2mks2m
提出日時 2024-04-12 21:51:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 246 ms / 2,000 ms
コード長 454 bytes
コンパイル時間 2,114 ms
コンパイル使用メモリ 74,588 KB
実行使用メモリ 56,076 KB
最終ジャッジ日時 2024-04-12 21:51:05
合計ジャッジ時間 4,358 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
50,460 KB
testcase_01 AC 185 ms
54,880 KB
testcase_02 AC 212 ms
55,532 KB
testcase_03 AC 246 ms
56,020 KB
testcase_04 AC 237 ms
55,920 KB
testcase_05 AC 225 ms
56,076 KB
testcase_06 AC 234 ms
55,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;

public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int t = Integer.parseInt(br.readLine());
		PrintWriter pw = new PrintWriter(System.out);
		for (int z = 0; z < t; z++) {
			long n = Long.parseLong(br.readLine());

			if (n == 1) {
				pw.println("P");
			} else {
				pw.println("K");
			}
		}
		pw.flush();
		br.close();
	}
}
0