結果

問題 No.486 3 Straight Win(3連勝)
ユーザー 310icecrystal310icecrystal
提出日時 2023-07-05 06:09:45
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 193 bytes
コンパイル時間 430 ms
コンパイル使用メモリ 87,040 KB
実行使用メモリ 80,336 KB
最終ジャッジ日時 2023-09-26 05:05:26
合計ジャッジ時間 5,039 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,564 KB
testcase_01 AC 75 ms
71,244 KB
testcase_02 AC 71 ms
71,368 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 AC 72 ms
71,456 KB
testcase_07 RE -
testcase_08 AC 71 ms
71,428 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 AC 72 ms
71,268 KB
testcase_14 AC 73 ms
71,260 KB
testcase_15 AC 74 ms
71,472 KB
testcase_16 RE -
testcase_17 AC 70 ms
71,424 KB
testcase_18 AC 72 ms
71,332 KB
testcase_19 AC 72 ms
71,104 KB
testcase_20 AC 73 ms
71,388 KB
testcase_21 AC 72 ms
71,252 KB
testcase_22 RE -
testcase_23 RE -
testcase_24 AC 72 ms
71,412 KB
testcase_25 AC 70 ms
71,308 KB
testcase_26 AC 72 ms
71,252 KB
testcase_27 AC 75 ms
71,564 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()

E = S.find("OOO")
W = S.find("XXX")

if E == W == -1:
	print("NA")
elif E == -1:
	print("West")
elif W == -1:
	print("East")
else:
	if E < F:
		print("East")
	else:
		print("West")
0