結果

問題 No.486 3 Straight Win(3連勝)
ユーザー togatogatogatoga
提出日時 2017-02-24 23:16:44
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 318 bytes
コンパイル時間 281 ms
コンパイル使用メモリ 87,068 KB
実行使用メモリ 71,632 KB
最終ジャッジ日時 2023-08-30 23:46:57
合計ジャッジ時間 3,631 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,424 KB
testcase_01 AC 70 ms
71,248 KB
testcase_02 AC 71 ms
71,372 KB
testcase_03 AC 70 ms
71,412 KB
testcase_04 AC 70 ms
71,304 KB
testcase_05 AC 71 ms
71,316 KB
testcase_06 AC 71 ms
71,300 KB
testcase_07 AC 70 ms
71,368 KB
testcase_08 AC 71 ms
71,616 KB
testcase_09 AC 71 ms
71,592 KB
testcase_10 AC 72 ms
71,172 KB
testcase_11 AC 71 ms
71,412 KB
testcase_12 AC 71 ms
71,444 KB
testcase_13 AC 71 ms
71,296 KB
testcase_14 AC 72 ms
71,320 KB
testcase_15 WA -
testcase_16 AC 71 ms
71,444 KB
testcase_17 AC 72 ms
71,304 KB
testcase_18 AC 71 ms
71,252 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 72 ms
71,600 KB
testcase_22 AC 72 ms
71,532 KB
testcase_23 AC 73 ms
71,372 KB
testcase_24 AC 71 ms
71,376 KB
testcase_25 AC 70 ms
71,392 KB
testcase_26 AC 71 ms
71,164 KB
testcase_27 AC 69 ms
71,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

if __name__ == "__main__":
    S = input()
    for i in range(len(S) - 3):
        if (S[i] == 'O' and S[i + 1] == 'O' and S[i + 2] == 'O'):
            print ("East")
            exit()
        elif (S[i] == 'X' and S[i + 1] == 'X' and S[i + 2] == 'X'):
            print ("West")
            exit()
    print ("NA")
0