結果
| 問題 | No.1579 New Type of Nim | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2021-07-02 23:22:09 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 633 bytes | 
| コンパイル時間 | 169 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-06-29 13:07:30 | 
| 合計ジャッジ時間 | 1,762 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 21 WA * 10 | 
ソースコード
import sys
INF = float('inf')
#10**20,2**63に変えるのもあり
MOD = 10**9 + 7
MOD2 = 998244353
def solve():
    def II(): return int(sys.stdin.readline())
    def CC(): return sys.stdin.readline()
    def LI(): return list(map(int, sys.stdin.readline().split()))
    def LC(): return list(input())
    def IC(): return [int(c) for c in input()]
    def MI(): return map(int, sys.stdin.readline().split())
    A,B = MI()
    MIN,MAX = min(A,B),max(A,B)
    if(MIN+1 == MAX):
        print("Q")
    else:
        print("P")
    return
solve()
#sys.setrecursionlimit(10 ** 6)再帰関数ではコメントにしないこと!!
            
            
            
        