結果
| 問題 |
No.486 3 Straight Win(3連勝)
|
| コンテスト | |
| ユーザー |
hiyokko2
|
| 提出日時 | 2017-08-04 14:59:58 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 553 bytes |
| コンパイル時間 | 1,712 ms |
| コンパイル使用メモリ | 159,512 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-26 04:31:31 |
| 合計ジャッジ時間 | 2,262 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 28 |
ソースコード
#include <bits/stdc++.h>
#define FOR(i,bg,ed) for(ll i=(bg);i<(ed);i++)
#define REP(i,n) FOR(i,0,n)
#define MOD 1000000007
#define int long long
using namespace std;
typedef long long ll;
const int INF = 1e9;
signed main()
{
string S;
cin >> S;
auto east = S.find("OOO");
auto west = S.find("XXX");
if (east == string::npos && west == string::npos) {
cout << "NA" << endl;
} else {
if (east < west) {
cout << "East" << endl;
} else {
cout << "West" << endl;
}
}
}
hiyokko2