結果

問題 No.486 3 Straight Win(3連勝)
ユーザー ndifix
提出日時 2017-02-24 22:30:56
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 299 bytes
コンパイル時間 746 ms
コンパイル使用メモリ 57,984 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2025-01-02 22:57:35
合計ジャッジ時間 1,659 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 21 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;
int main(){
	char s[101];
	cin >> s;

	for(int i=0; i<98; i++){
		if(s[i]==s[i+1] && s[i+1]==s[i+2]){
			if(s[i]=='O') cout << "East" << endl;
			if(s[i]=='X') cout << "West" << endl;
			return 0;
		}
	}

	cout << "NA" << endl;
	return 0;
}
0