結果

問題 No.2723 Fortune-telling by Flowers
ユーザー 👑 p-adicp-adic
提出日時 2023-12-25 15:44:49
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 411 ms / 2,000 ms
コード長 134 bytes
コンパイル時間 161 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 95,024 KB
最終ジャッジ日時 2023-12-25 15:44:52
合計ジャッジ時間 2,787 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,460 KB
testcase_01 AC 90 ms
76,316 KB
testcase_02 AC 127 ms
76,712 KB
testcase_03 AC 373 ms
78,584 KB
testcase_04 AC 411 ms
78,828 KB
testcase_05 AC 83 ms
95,024 KB
testcase_06 AC 40 ms
56,692 KB
testcase_07 AC 72 ms
83,036 KB
testcase_08 AC 74 ms
83,020 KB
testcase_09 AC 124 ms
76,708 KB
testcase_10 AC 103 ms
76,212 KB
testcase_11 AC 73 ms
75,328 KB
testcase_12 AC 72 ms
76,464 KB
testcase_13 AC 77 ms
79,340 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

I=input
for t in [0]*int(I()):
	I()
	D={'K':0,'P':0}
	for s in I().split('-'):
		if s:D[s[0]]+=s[0]==s[-1]
	print("KP"[D['P']>D['K']])
0