結果

問題 No.486 3 Straight Win(3連勝)
ユーザー nninjinn00
提出日時 2017-02-25 13:40:35
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 269 bytes
コンパイル時間 611 ms
コンパイル使用メモリ 53,588 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-11 14:57:12
合計ジャッジ時間 1,608 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12 WA * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cstring>
using namespace std;

int main(){
	const char *s = "OXOOXXX";
	if(strstr(s,"OOO")==0){
		cout << "West" << endl;
		return 0;
	}
	else if(strstr(s,"XXX")==0){
		cout << "East" << endl;
		return 0;
	}
	else
		cout << "NA" << endl;
}
0