結果

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

ソースコード

diff #

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

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

    print("NA")

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


0