結果

問題 No.197 手品
ユーザー rf141
提出日時 2015-07-03 22:26:38
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 385 bytes
コンパイル時間 310 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-27 09:55:13
合計ジャッジ時間 1,928 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 30 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

sb=raw_input()
n=int(raw_input())
sa=raw_input()

if n==0 and (sb.count("x") != sa.count("x")) or (sb.count("o") != sa.count("o")):
    print("SUCCESS")
elif n == 1:
    if ("o" in sb[2] and "o" in sa[0]) or ("o" in sb[0] and "o" in sa[2]):
        if ("o" in sb[1]) and ("o" in sa[1]):
            print("FAILURE")
        else:
            print("SUCCESS")
else:
    print("FAILURE")
0