結果
| 問題 | No.1579 New Type of Nim | 
| コンテスト | |
| ユーザー |  lam6er | 
| 提出日時 | 2025-03-20 18:52:19 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 109 bytes | 
| コンパイル時間 | 280 ms | 
| コンパイル使用メモリ | 82,596 KB | 
| 実行使用メモリ | 54,072 KB | 
| 最終ジャッジ日時 | 2025-03-20 18:53:18 | 
| 合計ジャッジ時間 | 2,839 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 15 WA * 16 | 
ソースコード
A, B = map(int, input().split())
if A == B:
    print("Q")
else:
    print("P" if (A + B) % 2 == 0 else "Q")
            
            
            
        