結果

問題 No.1579 New Type of Nim
ユーザー Kiri8128Kiri8128
提出日時 2021-07-02 22:54:44
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 121 bytes
コンパイル時間 1,117 ms
コンパイル使用メモリ 87,068 KB
実行使用メモリ 71,600 KB
最終ジャッジ日時 2023-09-11 23:20:58
合計ジャッジ時間 5,012 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,328 KB
testcase_01 AC 70 ms
71,336 KB
testcase_02 AC 71 ms
71,344 KB
testcase_03 AC 70 ms
71,224 KB
testcase_04 AC 72 ms
71,224 KB
testcase_05 AC 71 ms
71,328 KB
testcase_06 AC 72 ms
71,152 KB
testcase_07 AC 71 ms
71,136 KB
testcase_08 AC 70 ms
71,228 KB
testcase_09 AC 69 ms
71,296 KB
testcase_10 AC 70 ms
71,404 KB
testcase_11 AC 70 ms
71,160 KB
testcase_12 AC 70 ms
71,372 KB
testcase_13 AC 70 ms
71,476 KB
testcase_14 AC 69 ms
71,156 KB
testcase_15 AC 70 ms
71,152 KB
testcase_16 AC 69 ms
70,992 KB
testcase_17 WA -
testcase_18 AC 70 ms
71,328 KB
testcase_19 AC 68 ms
71,580 KB
testcase_20 AC 69 ms
71,328 KB
testcase_21 AC 68 ms
71,368 KB
testcase_22 AC 68 ms
71,388 KB
testcase_23 AC 67 ms
71,460 KB
testcase_24 AC 67 ms
71,364 KB
testcase_25 AC 67 ms
71,600 KB
testcase_26 AC 67 ms
71,256 KB
testcase_27 AC 67 ms
71,332 KB
testcase_28 AC 68 ms
71,228 KB
testcase_29 AC 67 ms
71,324 KB
testcase_30 AC 68 ms
71,340 KB
testcase_31 AC 67 ms
71,268 KB
testcase_32 AC 67 ms
71,324 KB
testcase_33 AC 67 ms
70,996 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b = sorted([int(a) for a in input().split()])
if a == b or (a % 2 and b == a + 1):
    print("Q")
else:
    print("P")
0