結果

問題 No.486 3 Straight Win(3連勝)
ユーザー kjnho
提出日時 2017-02-24 22:28:05
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 451 bytes
コンパイル時間 225 ms
コンパイル使用メモリ 12,032 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2025-01-02 22:49:17
合計ジャッジ時間 2,231 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 19 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    S = list(input())

    east = 0
    west = 0
    for s in S:
        if s == "O":
            east += 1
            if east == 3:
                print("East")
                return
        else:
            west += 1
            if west == 3:
                print("West")
                return

    print("NA")

if __name__ == "__main__":  # {{{
    try:
        import test
        test.test()
    except:
        main()  # }}}


0