結果

問題 No.2721 "Don't say N" Game
ユーザー 遭難者遭難者
提出日時 2024-04-12 22:12:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 124 bytes
コンパイル時間 168 ms
コンパイル使用メモリ 82,580 KB
実行使用メモリ 66,368 KB
最終ジャッジ日時 2024-04-12 22:12:18
合計ジャッジ時間 1,286 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,736 KB
testcase_01 AC 62 ms
65,220 KB
testcase_02 AC 58 ms
66,160 KB
testcase_03 AC 70 ms
66,368 KB
testcase_04 AC 57 ms
65,064 KB
testcase_05 AC 61 ms
65,904 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in range(int(input())):
	n = int(input())
	s = 0
	for i in range(1, n + 1):
		if n % i == 0:
			s ^= 1
	print("KP"[s])
0