結果
| 問題 |
No.524 コインゲーム
|
| コンテスト | |
| ユーザー |
rapurasu
|
| 提出日時 | 2017-06-04 13:36:38 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 699 bytes |
| コンパイル時間 | 1,246 ms |
| コンパイル使用メモリ | 157,964 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-02 10:29:32 |
| 合計ジャッジ時間 | 2,105 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 32 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for (int i=(a);i<(b);i++)
#define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--)
#define REP(i,n) for (int i=0;i<(n);i++)
#define RREP(i,n) for (int i=(n)-1;i>=0;i--)
typedef long long LL;
LL N;
int main(){
cin>>N;
/*
LL a=0;
for(int i=0;i<N;i++){
a=(a^(i+1));
//cout<<a<<endl;
if((i+2)%4==0){
if(a!=0){
cout<<a<<"Miss"<<i+2<<endl;
}
}else{
if(a==0){
cout<<"Bizz"<<i+1<<endl;
}
}
}
cout<<a<<endl;
*/
if((N+1)%4==0){
cout<<"X"<<endl;
}else{
cout<<"O"<<endl;
}
return(0);
}
rapurasu