結果

問題 No.1579 New Type of Nim
ユーザー lam6er
提出日時 2025-04-16 15:53:12
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 146 bytes
コンパイル時間 432 ms
コンパイル使用メモリ 81,556 KB
実行使用メモリ 53,616 KB
最終ジャッジ日時 2025-04-16 15:54:07
合計ジャッジ時間 2,510 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11 WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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