結果

問題 No.486 3 Straight Win(3連勝)
ユーザー RyutoRyuto
提出日時 2018-03-31 16:05:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 333 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 86,744 KB
実行使用メモリ 71,204 KB
最終ジャッジ日時 2023-09-08 11:23:15
合計ジャッジ時間 3,595 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
70,876 KB
testcase_01 AC 72 ms
70,900 KB
testcase_02 AC 72 ms
70,876 KB
testcase_03 AC 71 ms
71,060 KB
testcase_04 AC 70 ms
71,204 KB
testcase_05 AC 72 ms
71,064 KB
testcase_06 AC 72 ms
71,004 KB
testcase_07 AC 71 ms
70,880 KB
testcase_08 AC 70 ms
71,132 KB
testcase_09 AC 72 ms
70,892 KB
testcase_10 AC 72 ms
71,108 KB
testcase_11 AC 71 ms
70,924 KB
testcase_12 AC 72 ms
70,744 KB
testcase_13 AC 73 ms
71,064 KB
testcase_14 AC 75 ms
70,748 KB
testcase_15 AC 74 ms
71,008 KB
testcase_16 AC 71 ms
71,144 KB
testcase_17 AC 73 ms
70,944 KB
testcase_18 AC 72 ms
71,012 KB
testcase_19 AC 72 ms
70,876 KB
testcase_20 AC 72 ms
70,764 KB
testcase_21 AC 73 ms
71,092 KB
testcase_22 AC 71 ms
70,880 KB
testcase_23 AC 72 ms
71,016 KB
testcase_24 AC 72 ms
71,144 KB
testcase_25 AC 74 ms
70,768 KB
testcase_26 AC 72 ms
71,096 KB
testcase_27 AC 71 ms
70,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python

def main():
    s = input().strip()
    e = s.find('OOO')
    w = s.find('XXX')
    if e == w:
        print('NA')
    elif e == -1:
        print('West')
    elif w == -1:
        print('East')
    elif e < w:
        print('East')
    elif w < e:
        print('West')

if __name__ == '__main__':
    main()
0