結果

問題 No.2723 Fortune-telling by Flowers
ユーザー 👑 p-adicp-adic
提出日時 2023-12-25 17:51:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 767 ms / 2,000 ms
コード長 110 bytes
コンパイル時間 104 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 17,208 KB
最終ジャッジ日時 2023-12-25 17:57:00
合計ジャッジ時間 3,486 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
9,984 KB
testcase_01 AC 50 ms
9,984 KB
testcase_02 AC 143 ms
10,112 KB
testcase_03 AC 749 ms
10,752 KB
testcase_04 AC 767 ms
10,752 KB
testcase_05 AC 54 ms
15,160 KB
testcase_06 AC 31 ms
10,912 KB
testcase_07 AC 106 ms
17,208 KB
testcase_08 AC 79 ms
17,208 KB
testcase_09 AC 142 ms
10,112 KB
testcase_10 AC 80 ms
10,112 KB
testcase_11 AC 75 ms
10,240 KB
testcase_12 AC 74 ms
11,388 KB
testcase_13 AC 78 ms
14,304 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