結果
| 問題 | No.486 3 Straight Win(3連勝) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-02-25 20:25:54 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 674 bytes |
| 記録 | |
| コンパイル時間 | 981 ms |
| コンパイル使用メモリ | 179,204 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-25 13:21:06 |
| 合計ジャッジ時間 | 2,571 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 20 |
ソースコード
#include <bits/stdc++.h>
#define get_variable_name(x) #x
#define debug(x) cout << #x << " = " << x << endl
#define rep(i, begin, end) for(int (i) = (begin); (i) < (end); (i)++)
using namespace std;
using ll = int64_t;
int main() {
ios::sync_with_stdio(false);
string s;
cin >> s;
int index = 0;
while(index+2 < s.size()) {
char c = s[index];
bool f = (c == s[index+1] and c == s[index+2]);
if(f) {
if(c == 'X') {
cout << "East" << endl;
} else {
cout << "West" << endl;
}
return 0;
}
index++;
}
cout << "NA" << endl;
}