結果

問題 No.1016 三目並べ
ユーザー NewGarden
提出日時 2020-04-03 23:19:24
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 530 bytes
コンパイル時間 5,821 ms
コンパイル使用メモリ 281,516 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-03 06:18:55
合計ジャッジ時間 6,448 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 6 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef pair<int,int> P;
typedef long long ll;
typedef long double ld;
const int inf=1e9+7;
const ll longinf=1LL<<60;
#define REP(i,m,n) for(int i=(int)(m) ; i < (int) (n) ; ++i )
#define rep(i,n) REP(i,0,n)
#define F first
#define S second

const int mx=8010;
const ll mod=1e9+7;
 
int main(){
  int t;
  cin >> t;
while(t--){
  int n;
  string s;
  cin >> n >> s;
  cout<<(regex_search(s,regex("(ooo|oo-|-oo|o-o|--o-|-o--|o---o|o-----o|o------+o)"))?"O":"X")<<endl;
}
  return 0;
}
0