結果

問題 No.2723 Fortune-telling by Flowers
ユーザー 👑 p-adic
提出日時 2023-12-25 17:51:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 524 ms / 2,000 ms
コード長 110 bytes
コンパイル時間 1,878 ms
コンパイル使用メモリ 82,120 KB
実行使用メモリ 86,844 KB
最終ジャッジ日時 2024-09-27 14:34:02
合計ジャッジ時間 3,704 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

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