結果

問題 No.2723 Fortune-telling by Flowers
ユーザー 👑 p-adicp-adic
提出日時 2023-12-25 15:44:38
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 750 ms / 2,000 ms
コード長 134 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 17,084 KB
最終ジャッジ日時 2023-12-25 15:44:42
合計ジャッジ時間 3,491 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
9,984 KB
testcase_01 AC 44 ms
9,984 KB
testcase_02 AC 147 ms
10,112 KB
testcase_03 AC 730 ms
10,624 KB
testcase_04 AC 750 ms
10,624 KB
testcase_05 AC 72 ms
15,036 KB
testcase_06 AC 32 ms
10,788 KB
testcase_07 AC 88 ms
17,084 KB
testcase_08 AC 91 ms
17,084 KB
testcase_09 AC 147 ms
10,112 KB
testcase_10 AC 86 ms
10,112 KB
testcase_11 AC 80 ms
10,240 KB
testcase_12 AC 82 ms
11,348 KB
testcase_13 AC 85 ms
14,180 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