結果

問題 No.486 3 Straight Win(3連勝)
ユーザー HAGI_TAROHAGI_TARO
提出日時 2021-10-06 09:04:48
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 259 bytes
コンパイル時間 255 ms
コンパイル使用メモリ 87,196 KB
実行使用メモリ 71,604 KB
最終ジャッジ日時 2023-09-30 08:38:24
合計ジャッジ時間 3,564 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 68 ms
71,552 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 69 ms
71,292 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 68 ms
71,116 KB
testcase_09 WA -
testcase_10 AC 67 ms
71,380 KB
testcase_11 AC 66 ms
71,196 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 68 ms
71,264 KB
testcase_15 WA -
testcase_16 AC 69 ms
71,408 KB
testcase_17 AC 67 ms
71,488 KB
testcase_18 AC 66 ms
71,220 KB
testcase_19 AC 66 ms
71,344 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 69 ms
71,380 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 69 ms
71,360 KB
testcase_26 AC 68 ms
71,196 KB
testcase_27 AC 68 ms
71,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
ans = "NA"
E = 0
W = 0
for i in range(len(S)):
    if S[i] == "O":
        W = 0
        E += 1
    else:
        E = 0
        E += 1
    if E == 3:
        ans = "East"
        break
    elif W == 3:
        ans = "West"
        break
print(ans)
0