結果

問題 No.486 3 Straight Win(3連勝)
ユーザー Mcpu3
提出日時 2018-04-30 16:06:24
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 350 bytes
コンパイル時間 130 ms
コンパイル使用メモリ 27,520 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-27 23:55:06
合計ジャッジ時間 955 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <string.h>

int main(void)
{
	char s[101];
	scanf("%s", s);
	if (strstr(s, "OOO") != NULL && strstr(s, "XXX") != NULL) puts(strstr("OOO", s) > strstr("XXX", s) ? "West" : "East");
	else if (strstr(s, "OOO") != NULL) puts("East");
	else if (strstr(s, "XXX") != NULL) puts("West");
	else puts("NA");
	return 0;
}
0