結果

問題 No.197 手品
ユーザー brthyyjpbrthyyjp
提出日時 2021-06-11 19:06:21
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 410 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 82,384 KB
実行使用メモリ 67,144 KB
最終ジャッジ日時 2024-12-14 16:31:47
合計ジャッジ時間 3,763 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 35 RE * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

s = str(input())
n = int(input())
t = str(input())

if s.count('o') != t.count('o'):
    print('SUCCESS')
    exit()

if n == 0:
    if s != t:
        print('SUCCESS')
    else:
        print('FAILURE')
elif n == 1:
    L = []
    for i in range(3):
        if s[i] != t[i]:
            L.append(i)
    if L[1]-L[0] == 1:
        print('FAILURE')
    else:
        print('SUCCESS')
else:
    print('FAILURE')
0