結果
| 問題 | No.486 3 Straight Win(3連勝) |
| コンテスト | |
| ユーザー |
hotpepsi
|
| 提出日時 | 2017-06-09 16:44:39 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 371 bytes |
| 記録 | |
| コンパイル時間 | 480 ms |
| コンパイル使用メモリ | 75,960 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-03-12 18:04:28 |
| 合計ジャッジ時間 | 1,099 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 28 |
ソースコード
#include <iostream>
#include <sstream>
#include <algorithm>
using namespace std;
int main(int argc, char *argv[]) {
string s;
cin >> s;
int a = (int)s.find("OOO");
int b = (int)s.find("XXX");
if (a >= 0 && (b < 0 || b > a)) {
cout << "East" << endl;
} else if (b >= 0) {
cout << "West" << endl;
} else {
cout << "NA" << endl;
}
return 0;
}
hotpepsi