結果
| 問題 | No.486 3 Straight Win(3連勝) |
| コンテスト | |
| ユーザー |
AREIDO2
|
| 提出日時 | 2017-02-25 14:28:11 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 496 bytes |
| コンパイル時間 | 392 ms |
| コンパイル使用メモリ | 56,020 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-11 14:58:12 |
| 合計ジャッジ時間 | 1,258 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 20 |
ソースコード
#include<iostream>
#include<string>
using namespace std;
int main(){
string S;
cin >> S;
int w,e;
string result;
w = S.find("OOO");
e = S.find("XXX");
if(w == string::npos){
if(e == string::npos)
result = "NA";
else
result = "East";
}
else{
if(e == string::npos)
result = "West";
else{
if(w < e)
result = "West";
else
result = "East";
}
}
cout << result << "\n";
return 0;
}
AREIDO2