結果

問題 No.1579 New Type of Nim
ユーザー moharan627moharan627
提出日時 2021-07-02 23:22:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 633 bytes
コンパイル時間 489 ms
コンパイル使用メモリ 10,772 KB
実行使用メモリ 8,000 KB
最終ジャッジ日時 2023-09-11 23:48:52
合計ジャッジ時間 2,154 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,752 KB
testcase_01 AC 15 ms
7,952 KB
testcase_02 AC 14 ms
7,836 KB
testcase_03 AC 14 ms
7,848 KB
testcase_04 AC 14 ms
7,836 KB
testcase_05 AC 14 ms
7,784 KB
testcase_06 AC 15 ms
7,828 KB
testcase_07 AC 14 ms
7,808 KB
testcase_08 AC 14 ms
7,920 KB
testcase_09 AC 15 ms
7,824 KB
testcase_10 AC 14 ms
7,892 KB
testcase_11 AC 14 ms
7,804 KB
testcase_12 AC 15 ms
7,888 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 14 ms
7,828 KB
testcase_18 AC 14 ms
7,792 KB
testcase_19 WA -
testcase_20 AC 14 ms
8,000 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 14 ms
7,852 KB
testcase_24 AC 15 ms
7,780 KB
testcase_25 AC 15 ms
7,804 KB
testcase_26 AC 14 ms
7,984 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 17 ms
7,808 KB
testcase_30 WA -
testcase_31 AC 15 ms
7,840 KB
testcase_32 AC 15 ms
7,856 KB
testcase_33 AC 15 ms
7,808 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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)再帰関数ではコメントにしないこと!!
0