結果

問題 No.1579 New Type of Nim
ユーザー gew1fw
提出日時 2025-06-12 18:05:17
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 140 bytes
コンパイル時間 225 ms
コンパイル使用メモリ 82,968 KB
実行使用メモリ 54,128 KB
最終ジャッジ日時 2025-06-12 18:06:44
合計ジャッジ時間 2,501 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11 WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B = map(int, input().split())
sum_ab = A + B
diff = abs(A - B)

if sum_ab % 2 == 0 and diff % 2 == 0:
    print("P")
else:
    print("Q")
0