結果

問題 No.2725 Coprime Game 2
ユーザー Carpenters-CatCarpenters-Cat
提出日時 2024-04-12 22:26:06
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 159 bytes
コンパイル時間 263 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-10-02 23:27:43
合計ジャッジ時間 1,269 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 1
other RE * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import gcd
T = int(input())
for _ in range(T) :
	N = int(input())
	fl = 2
	while N % fl == 0 :
		fl += 1
	print("K" if math.gcd(K, fl) == 1 else "P")
0