結果

問題 No.486 3 Straight Win(3連勝)
ユーザー 👑 yumechiyumechi
提出日時 2017-02-24 23:33:50
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 265 bytes
コンパイル時間 602 ms
コンパイル使用メモリ 87,248 KB
実行使用メモリ 71,712 KB
最終ジャッジ日時 2023-08-31 00:09:01
合計ジャッジ時間 3,625 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 71 ms
71,496 KB
testcase_04 AC 70 ms
71,368 KB
testcase_05 AC 71 ms
71,528 KB
testcase_06 WA -
testcase_07 AC 70 ms
71,296 KB
testcase_08 WA -
testcase_09 AC 69 ms
71,668 KB
testcase_10 AC 69 ms
71,368 KB
testcase_11 AC 70 ms
71,584 KB
testcase_12 AC 71 ms
71,460 KB
testcase_13 WA -
testcase_14 AC 69 ms
71,364 KB
testcase_15 WA -
testcase_16 AC 70 ms
71,364 KB
testcase_17 AC 70 ms
71,644 KB
testcase_18 AC 71 ms
71,568 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 71 ms
71,604 KB
testcase_22 AC 71 ms
71,364 KB
testcase_23 AC 70 ms
71,456 KB
testcase_24 AC 69 ms
71,592 KB
testcase_25 AC 70 ms
71,432 KB
testcase_26 AC 70 ms
71,564 KB
testcase_27 AC 70 ms
71,356 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
	s = input()
	east_3win = s.find("OOO")
	west_3win = s.find("XXX")
	if east_3win >= 0 and east_3win < west_3win:
		print("East")
	elif west_3win >= 0 and west_3win < east_3win:
		print("West")
	else:
		print("NA")


if __name__=="__main__":
    solve()
0