結果
| 問題 | No.1579 New Type of Nim |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-06-22 23:39:58 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 66 ms / 2,000 ms |
| + 184µs | |
| コード長 | 147 bytes |
| 記録 | |
| コンパイル時間 | 239 ms |
| コンパイル使用メモリ | 96,232 KB |
| 実行使用メモリ | 78,848 KB |
| 最終ジャッジ日時 | 2026-08-23 19:29:49 |
| 合計ジャッジ時間 | 4,211 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 31 |
ソースコード
A,B = map(int,input().split())
if A % 2 == 1 and (B==A+1 or B==A):
print('Q')
elif A % 2 == 0 and (B==A-1):
print('Q')
else:
print('P')