結果

問題 No.1016 三目並べ
ユーザー NewGardenNewGarden
提出日時 2020-04-03 22:50:05
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 506 bytes
コンパイル時間 5,795 ms
コンパイル使用メモリ 279,552 KB
実行使用メモリ 4,388 KB
最終ジャッジ日時 2023-09-16 03:55:31
合計ジャッジ時間 6,206 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

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":"x")<<endl;
}
  return 0;
}
0