結果
| 問題 | No.1579 New Type of Nim |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-07-04 17:25:32 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 208 bytes |
| 記録 | |
| コンパイル時間 | 1,258 ms |
| コンパイル使用メモリ | 207,352 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-21 10:54:40 |
| 合計ジャッジ時間 | 2,554 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 31 |
ソースコード
#include <bits/stdc++.h>
using std::cin;
using std::cout;
int main() {
int a, b;
cin >> a >> b;
if ((a - 1) / 2 == (b - 1) / 2 and (a % 2 == 1 or b % 2 == 1))
puts("Q");
else puts("P");
return 0;
}