結果

問題 No.486 3 Straight Win(3連勝)
ユーザー DexctersuDexctersu
提出日時 2017-03-20 23:26:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 196 bytes
コンパイル時間 257 ms
コンパイル使用メモリ 10,612 KB
実行使用メモリ 7,980 KB
最終ジャッジ日時 2023-09-18 13:24:35
合計ジャッジ時間 1,576 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,896 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 15 ms
7,848 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 15 ms
7,852 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 15 ms
7,852 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 15 ms
7,880 KB
testcase_18 AC 15 ms
7,852 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 15 ms
7,860 KB
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 15 ms
7,864 KB
testcase_25 AC 15 ms
7,852 KB
testcase_26 AC 15 ms
7,776 KB
testcase_27 AC 15 ms
7,808 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S=input()
count=0
for word in S:
    if word[0]=='O':
     count+=1
    elif word[0]=='X':
     count-=1
if count==3:
    print('East')
elif count==-3:
    print('West')
else:
    print('NA')
    
0