結果

問題 No.486 3 Straight Win(3連勝)
ユーザー nebukuro09nebukuro09
提出日時 2017-02-24 23:46:16
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 197 bytes
コンパイル時間 968 ms
コンパイル使用メモリ 7,016 KB
実行使用メモリ 6,108 KB
最終ジャッジ日時 2023-08-31 00:15:30
合計ジャッジ時間 2,329 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 10 ms
5,900 KB
testcase_04 AC 11 ms
5,944 KB
testcase_05 AC 10 ms
5,864 KB
testcase_06 WA -
testcase_07 AC 11 ms
5,952 KB
testcase_08 WA -
testcase_09 AC 11 ms
5,948 KB
testcase_10 AC 10 ms
5,936 KB
testcase_11 AC 11 ms
5,868 KB
testcase_12 AC 10 ms
5,884 KB
testcase_13 WA -
testcase_14 AC 11 ms
5,868 KB
testcase_15 WA -
testcase_16 AC 10 ms
5,868 KB
testcase_17 AC 11 ms
6,020 KB
testcase_18 AC 10 ms
5,956 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 11 ms
5,876 KB
testcase_22 AC 10 ms
5,948 KB
testcase_23 AC 10 ms
5,864 KB
testcase_24 AC 10 ms
6,076 KB
testcase_25 AC 11 ms
5,956 KB
testcase_26 AC 10 ms
6,064 KB
testcase_27 AC 10 ms
5,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = raw_input()
o = s.find('OOO')
x = s.find('XXX')
if o == -1 and x == -1:
    print "NA"
elif o == -1:
    print "East"
elif x == -1:
    print "West"
else:
    print "East" if o < x else "West"
0