結果

問題 No.486 3 Straight Win(3連勝)
ユーザー ryusukeryusuke
提出日時 2022-02-07 23:51:09
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 168 bytes
コンパイル時間 298 ms
コンパイル使用メモリ 87,000 KB
実行使用メモリ 71,568 KB
最終ジャッジ日時 2023-09-04 17:32:40
合計ジャッジ時間 4,040 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,156 KB
testcase_01 AC 67 ms
71,284 KB
testcase_02 AC 74 ms
71,512 KB
testcase_03 AC 73 ms
71,464 KB
testcase_04 AC 67 ms
71,112 KB
testcase_05 AC 70 ms
71,368 KB
testcase_06 AC 69 ms
71,284 KB
testcase_07 AC 68 ms
71,568 KB
testcase_08 AC 67 ms
71,184 KB
testcase_09 AC 67 ms
71,104 KB
testcase_10 AC 66 ms
71,268 KB
testcase_11 AC 67 ms
71,300 KB
testcase_12 AC 67 ms
71,112 KB
testcase_13 AC 67 ms
71,356 KB
testcase_14 AC 67 ms
71,356 KB
testcase_15 AC 70 ms
71,296 KB
testcase_16 AC 68 ms
71,288 KB
testcase_17 AC 70 ms
71,436 KB
testcase_18 AC 68 ms
71,252 KB
testcase_19 AC 68 ms
71,444 KB
testcase_20 AC 66 ms
71,316 KB
testcase_21 AC 68 ms
71,324 KB
testcase_22 AC 68 ms
71,156 KB
testcase_23 AC 69 ms
71,436 KB
testcase_24 AC 68 ms
71,208 KB
testcase_25 AC 70 ms
71,224 KB
testcase_26 AC 68 ms
71,284 KB
testcase_27 AC 68 ms
71,284 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
for i in range(len(s) - 2):
    if s[i : i + 3] == 'OOO':
        exit(print('East'))
    if s[i : i + 3] == 'XXX':
        exit(print('West'))

print('NA')
0