結果

問題 No.486 3 Straight Win(3連勝)
ユーザー otsunekootsuneko
提出日時 2021-05-07 16:16:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 2,000 ms
コード長 230 bytes
コンパイル時間 735 ms
コンパイル使用メモリ 87,212 KB
実行使用メモリ 71,572 KB
最終ジャッジ日時 2023-10-13 07:27:13
合計ジャッジ時間 4,956 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,472 KB
testcase_01 AC 69 ms
71,348 KB
testcase_02 AC 68 ms
71,292 KB
testcase_03 AC 68 ms
71,356 KB
testcase_04 AC 69 ms
71,296 KB
testcase_05 AC 69 ms
71,284 KB
testcase_06 AC 67 ms
71,408 KB
testcase_07 AC 68 ms
71,472 KB
testcase_08 AC 69 ms
71,520 KB
testcase_09 AC 69 ms
71,280 KB
testcase_10 AC 67 ms
71,256 KB
testcase_11 AC 70 ms
71,368 KB
testcase_12 AC 72 ms
71,076 KB
testcase_13 AC 71 ms
71,132 KB
testcase_14 AC 71 ms
71,400 KB
testcase_15 AC 70 ms
71,140 KB
testcase_16 AC 69 ms
71,380 KB
testcase_17 AC 69 ms
71,204 KB
testcase_18 AC 69 ms
71,544 KB
testcase_19 AC 69 ms
71,256 KB
testcase_20 AC 69 ms
71,288 KB
testcase_21 AC 70 ms
71,084 KB
testcase_22 AC 69 ms
71,336 KB
testcase_23 AC 73 ms
71,572 KB
testcase_24 AC 70 ms
71,136 KB
testcase_25 AC 70 ms
71,568 KB
testcase_26 AC 71 ms
71,376 KB
testcase_27 AC 71 ms
71,476 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
idx_E = idx_W = len(S)

if "OOO" in S:
    idx_E = S.index("OOO")
if "XXX" in S:
    idx_W = S.index("XXX")

if idx_E < idx_W:
    print("East")
elif idx_E == idx_W:
    print("NA")
else:
    print("West")
0