結果

問題 No.486 3 Straight Win(3連勝)
ユーザー Kura
提出日時 2019-02-19 07:51:29
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 374 bytes
コンパイル時間 899 ms
コンパイル使用メモリ 57,032 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-10 19:39:53
合計ジャッジ時間 1,394 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>
using namespace std;
int main(){
    string S;
    cin>>S;
    for(int i=0;i<S.length();i++){
        if(S[i]=='O'&&S[i+1]=='0'&&S[i+2]=='0'){
            cout<<"East"<<endl;
            return 0;
        }else if(S[i]==S[i+1]&&S[i+1]==S[i+2]){
            cout<<"West"<<endl;
            return 0;
        }
    }
    cout<<"NA"<<endl;
}
0