結果

問題 No.486 3 Straight Win(3連勝)
ユーザー miya145592miya145592
提出日時 2023-05-03 14:53:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 62 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 376 ms
コンパイル使用メモリ 87,204 KB
実行使用メモリ 71,552 KB
最終ジャッジ日時 2023-08-14 00:36:30
合計ジャッジ時間 3,362 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
71,104 KB
testcase_01 AC 58 ms
71,372 KB
testcase_02 AC 57 ms
71,108 KB
testcase_03 AC 56 ms
71,176 KB
testcase_04 AC 62 ms
71,428 KB
testcase_05 AC 56 ms
71,468 KB
testcase_06 AC 58 ms
71,432 KB
testcase_07 AC 58 ms
71,308 KB
testcase_08 AC 57 ms
71,412 KB
testcase_09 AC 57 ms
71,296 KB
testcase_10 AC 57 ms
71,288 KB
testcase_11 AC 58 ms
71,272 KB
testcase_12 AC 56 ms
71,260 KB
testcase_13 AC 58 ms
71,260 KB
testcase_14 AC 60 ms
71,112 KB
testcase_15 AC 57 ms
71,424 KB
testcase_16 AC 57 ms
71,240 KB
testcase_17 AC 56 ms
71,284 KB
testcase_18 AC 59 ms
71,428 KB
testcase_19 AC 57 ms
71,552 KB
testcase_20 AC 57 ms
71,496 KB
testcase_21 AC 57 ms
71,256 KB
testcase_22 AC 57 ms
71,424 KB
testcase_23 AC 58 ms
71,492 KB
testcase_24 AC 59 ms
71,364 KB
testcase_25 AC 58 ms
71,400 KB
testcase_26 AC 57 ms
71,392 KB
testcase_27 AC 57 ms
71,332 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
e = S.find("OOO")
w = S.find("XXX")
if e==-1 and w==-1:
    print("NA")
elif e==-1:
    print("West")
elif w==-1:
    print("East")
elif e<w:
    print("East")
else:
    print("West")
0