結果

問題 No.1579 New Type of Nim
ユーザー minimum
提出日時 2021-07-02 22:49:58
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 177 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 52,352 KB
最終ジャッジ日時 2024-06-29 12:41:34
合計ジャッジ時間 2,568 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 23 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b = map(int ,input().split())
if a + b <= 3:
    print("Q")
elif a == 2 or b == 2:
    print("P")
elif (a, b) in [(3, 3), (3, 4), (4, 3)]:
    print("Q")
else:
    print("P")
0