結果

問題 No.1579 New Type of Nim
ユーザー rlangevinrlangevin
提出日時 2023-02-15 23:00:31
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 136 bytes
コンパイル時間 645 ms
コンパイル使用メモリ 87,052 KB
実行使用メモリ 71,656 KB
最終ジャッジ日時 2023-09-25 06:45:12
合計ジャッジ時間 4,656 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,368 KB
testcase_01 AC 72 ms
71,336 KB
testcase_02 AC 72 ms
71,552 KB
testcase_03 AC 70 ms
71,200 KB
testcase_04 AC 70 ms
71,300 KB
testcase_05 AC 68 ms
71,584 KB
testcase_06 AC 69 ms
71,368 KB
testcase_07 AC 69 ms
71,352 KB
testcase_08 AC 69 ms
71,520 KB
testcase_09 AC 70 ms
71,312 KB
testcase_10 AC 68 ms
71,552 KB
testcase_11 AC 70 ms
71,300 KB
testcase_12 AC 68 ms
71,332 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 72 ms
71,484 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 73 ms
71,556 KB
testcase_19 AC 72 ms
71,600 KB
testcase_20 AC 72 ms
71,436 KB
testcase_21 AC 72 ms
71,468 KB
testcase_22 AC 73 ms
71,204 KB
testcase_23 AC 72 ms
71,332 KB
testcase_24 AC 70 ms
71,544 KB
testcase_25 AC 69 ms
71,392 KB
testcase_26 AC 71 ms
71,336 KB
testcase_27 WA -
testcase_28 AC 69 ms
71,304 KB
testcase_29 AC 70 ms
71,488 KB
testcase_30 WA -
testcase_31 AC 71 ms
71,384 KB
testcase_32 AC 70 ms
71,464 KB
testcase_33 AC 72 ms
71,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B = map(int, input().split())
if A < B:
    A, B = B, A
if A - B >= 2:
    print("P")
elif A % 2:
    print("P")
else:
    print("Q")
0