結果
| 問題 |
No.1579 New Type of Nim
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-07-04 16:43:13 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 267 bytes |
| コンパイル時間 | 1,474 ms |
| コンパイル使用メモリ | 164,820 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-23 05:24:10 |
| 合計ジャッジ時間 | 2,440 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 31 |
ソースコード
#include<bits/stdc++.h>
#define int long long
using namespace std;
int n,k,sum,t,x,y,l,r;
int q,a,b;
signed main(){
cin>>a>>b;
k=min(a,b);
t=max(a,b);
if(k&1){
if(t>k+1){
cout<<"P";
}
else{
cout<<"Q";
}
}
else{
cout<<"P";
}
}