結果

問題 No.2723 Fortune-telling by Flowers
ユーザー 👑 p-adicp-adic
提出日時 2023-12-25 17:51:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 584 ms / 2,000 ms
コード長 110 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 86,960 KB
最終ジャッジ日時 2023-12-25 17:57:11
合計ジャッジ時間 3,697 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,332 KB
testcase_01 AC 165 ms
76,920 KB
testcase_02 AC 309 ms
78,952 KB
testcase_03 AC 350 ms
77,672 KB
testcase_04 AC 584 ms
79,256 KB
testcase_05 AC 73 ms
86,960 KB
testcase_06 AC 40 ms
56,568 KB
testcase_07 AC 91 ms
82,780 KB
testcase_08 AC 107 ms
82,776 KB
testcase_09 AC 273 ms
78,612 KB
testcase_10 AC 167 ms
76,328 KB
testcase_11 AC 131 ms
75,692 KB
testcase_12 AC 108 ms
77,636 KB
testcase_13 AC 131 ms
82,584 KB
権限があれば一括ダウンロードができます

ソースコード

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