結果

問題 No.2721 "Don't say N" Game
ユーザー Iroha_3856
提出日時 2025-10-08 19:20:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 172 bytes
コンパイル時間 334 ms
コンパイル使用メモリ 82,292 KB
実行使用メモリ 67,044 KB
最終ジャッジ日時 2025-10-08 19:20:09
合計ジャッジ時間 1,857 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import isqrt

def solve():
	N = int(input())
	cnt = 0
	for i in range(1, N+1):
		if N%i == 0: cnt += 1
	print("KP"[cnt%2])

for _ in range(int(input())):
	solve()
0