結果

問題 No.486 3 Straight Win(3連勝)
ユーザー deepjugglingdeepjuggling
提出日時 2022-10-08 07:51:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 149 ms / 2,000 ms
コード長 319 bytes
コンパイル時間 298 ms
コンパイル使用メモリ 86,600 KB
実行使用メモリ 79,908 KB
最終ジャッジ日時 2023-09-04 05:46:40
合計ジャッジ時間 6,367 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 142 ms
79,508 KB
testcase_01 AC 143 ms
79,580 KB
testcase_02 AC 144 ms
79,576 KB
testcase_03 AC 143 ms
79,608 KB
testcase_04 AC 143 ms
79,908 KB
testcase_05 AC 145 ms
79,664 KB
testcase_06 AC 143 ms
79,512 KB
testcase_07 AC 144 ms
79,576 KB
testcase_08 AC 143 ms
79,796 KB
testcase_09 AC 143 ms
79,700 KB
testcase_10 AC 143 ms
79,700 KB
testcase_11 AC 142 ms
79,584 KB
testcase_12 AC 144 ms
79,588 KB
testcase_13 AC 145 ms
79,516 KB
testcase_14 AC 145 ms
79,604 KB
testcase_15 AC 144 ms
79,548 KB
testcase_16 AC 149 ms
79,660 KB
testcase_17 AC 146 ms
79,620 KB
testcase_18 AC 146 ms
79,560 KB
testcase_19 AC 147 ms
79,580 KB
testcase_20 AC 148 ms
79,508 KB
testcase_21 AC 147 ms
79,612 KB
testcase_22 AC 146 ms
79,612 KB
testcase_23 AC 147 ms
79,576 KB
testcase_24 AC 144 ms
79,608 KB
testcase_25 AC 142 ms
79,504 KB
testcase_26 AC 144 ms
79,364 KB
testcase_27 AC 142 ms
79,628 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import re
s = input()
if re.search(r'OOO',s) and re.search(r'XXX',s):
    m = re.search(r'OOO',s)
    n = re.search(r'XXX',s)
    if m.start() > n.start():
        print("West")
    else:
        print("East")
elif re.search(r'OOO',s):
    print("East")
elif re.search(r'XXX',s):
    print("West")
else:
    print("NA")
0