結果

問題 No.197 手品
ユーザー brthyyjpbrthyyjp
提出日時 2021-06-11 19:06:21
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 410 bytes
コンパイル時間 1,129 ms
コンパイル使用メモリ 86,660 KB
実行使用メモリ 79,040 KB
最終ジャッジ日時 2023-08-21 07:16:12
合計ジャッジ時間 6,473 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 69 ms
71,184 KB
testcase_02 AC 74 ms
71,164 KB
testcase_03 AC 71 ms
71,256 KB
testcase_04 AC 70 ms
71,440 KB
testcase_05 AC 71 ms
71,384 KB
testcase_06 AC 69 ms
71,260 KB
testcase_07 AC 72 ms
71,028 KB
testcase_08 AC 71 ms
71,256 KB
testcase_09 AC 70 ms
71,324 KB
testcase_10 AC 71 ms
71,548 KB
testcase_11 AC 70 ms
71,300 KB
testcase_12 AC 70 ms
71,188 KB
testcase_13 AC 71 ms
71,428 KB
testcase_14 AC 70 ms
71,260 KB
testcase_15 AC 69 ms
71,284 KB
testcase_16 AC 70 ms
71,340 KB
testcase_17 AC 71 ms
71,440 KB
testcase_18 AC 71 ms
71,164 KB
testcase_19 AC 70 ms
71,372 KB
testcase_20 AC 71 ms
71,424 KB
testcase_21 AC 71 ms
71,504 KB
testcase_22 AC 71 ms
71,028 KB
testcase_23 AC 72 ms
71,196 KB
testcase_24 AC 70 ms
71,184 KB
testcase_25 AC 71 ms
71,544 KB
testcase_26 RE -
testcase_27 RE -
testcase_28 AC 72 ms
71,208 KB
testcase_29 RE -
testcase_30 AC 73 ms
71,488 KB
testcase_31 AC 72 ms
71,268 KB
testcase_32 AC 71 ms
71,344 KB
testcase_33 RE -
testcase_34 RE -
testcase_35 AC 71 ms
71,212 KB
testcase_36 AC 70 ms
71,336 KB
testcase_37 AC 71 ms
71,256 KB
testcase_38 AC 71 ms
71,288 KB
testcase_39 RE -
testcase_40 AC 71 ms
71,640 KB
testcase_41 AC 70 ms
71,428 KB
testcase_42 RE -
testcase_43 AC 71 ms
71,428 KB
testcase_44 AC 70 ms
71,028 KB
testcase_45 AC 72 ms
71,344 KB
testcase_46 AC 73 ms
71,224 KB
権限があれば一括ダウンロードができます

ソースコード

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