結果
| 問題 |
No.1579 New Type of Nim
|
| コンテスト | |
| ユーザー |
ygd.
|
| 提出日時 | 2021-07-02 21:42:19 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 2,000 ms |
| コード長 | 254 bytes |
| コンパイル時間 | 159 ms |
| コンパイル使用メモリ | 82,240 KB |
| 実行使用メモリ | 53,588 KB |
| 最終ジャッジ日時 | 2024-07-23 05:17:28 |
| 合計ジャッジ時間 | 2,494 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 31 |
ソースコード
def main():
A,B = map(int,input().split())
if A > B:
A,B = B,A
#A <= B
if A == 1 and B == 2:
print("Q");exit()
if A%2 == 1 and B <= A + 1:
print("Q");exit()
print("P")
if __name__ == '__main__':
main()
ygd.