結果
| 問題 |
No.1016 三目並べ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-03 23:14:50 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,915 bytes |
| コンパイル時間 | 5,150 ms |
| コンパイル使用メモリ | 279,540 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-03 06:01:54 |
| 合計ジャッジ時間 | 6,001 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 6 WA * 4 |
ソースコード
#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-------o|o--------o|o---------o|o----------o|o-----------o|o------------o|o-------------o|o--------------o|o---------------o|o----------------o|o-----------------o|o------------------o|o-------------------o|o--------------------o|o---------------------o|o----------------------o|o-----------------------o|o------------------------o|o-------------------------o|o--------------------------o|o---------------------------o|o----------------------------o|o-----------------------------o|o------------------------------o|o-------------------------------o|o--------------------------------o|o---------------------------------o|o----------------------------------o|o-----------------------------------o|o------------------------------------o|o-------------------------------------o|o--------------------------------------o|o---------------------------------------o|o----------------------------------------o|o-----------------------------------------o|o------------------------------------------o|o-------------------------------------------o|o--------------------------------------------o|o---------------------------------------------o|o----------------------------------------------o|o-----------------------------------------------o|o------------------------------------------------o|o-------------------------------------------------o|o--------------------------------------------------o)"))?"O":"X")<<endl;
}
return 0;
}