結果

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

ソースコード

diff #

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