結果
| 問題 |
No.1579 New Type of Nim
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2021-07-02 21:52:52 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 180 bytes |
| コンパイル時間 | 91 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-06-29 11:24:31 |
| 合計ジャッジ時間 | 2,164 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 WA * 10 |
ソースコード
import sys
input = sys.stdin.readline
A,B=map(int,input().split())
if A>B:
A,B=B,A
if (A,B) in [(1,1),(1,2),(3,3)] or (A>=3 and B==A+1):
print("Q")
else:
print("P")
titia