結果

問題 No.197 手品
ユーザー brthyyjpbrthyyjp
提出日時 2021-06-11 19:07:49
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 464 bytes
コンパイル時間 398 ms
コンパイル使用メモリ 87,156 KB
実行使用メモリ 71,560 KB
最終ジャッジ日時 2023-08-21 07:17:11
合計ジャッジ時間 5,814 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,068 KB
testcase_01 AC 68 ms
71,208 KB
testcase_02 AC 67 ms
71,124 KB
testcase_03 AC 68 ms
71,128 KB
testcase_04 AC 68 ms
71,196 KB
testcase_05 AC 67 ms
71,192 KB
testcase_06 AC 68 ms
71,248 KB
testcase_07 AC 68 ms
71,312 KB
testcase_08 AC 67 ms
71,560 KB
testcase_09 AC 68 ms
71,208 KB
testcase_10 AC 67 ms
71,376 KB
testcase_11 AC 68 ms
71,276 KB
testcase_12 AC 68 ms
71,256 KB
testcase_13 AC 69 ms
71,452 KB
testcase_14 AC 67 ms
71,328 KB
testcase_15 AC 67 ms
71,192 KB
testcase_16 AC 69 ms
71,236 KB
testcase_17 AC 68 ms
71,540 KB
testcase_18 AC 69 ms
71,108 KB
testcase_19 AC 69 ms
71,328 KB
testcase_20 AC 68 ms
71,332 KB
testcase_21 AC 69 ms
71,128 KB
testcase_22 AC 69 ms
71,260 KB
testcase_23 AC 71 ms
71,200 KB
testcase_24 AC 69 ms
71,192 KB
testcase_25 AC 69 ms
71,324 KB
testcase_26 WA -
testcase_27 AC 68 ms
71,304 KB
testcase_28 AC 69 ms
71,212 KB
testcase_29 AC 70 ms
71,236 KB
testcase_30 AC 69 ms
71,100 KB
testcase_31 AC 67 ms
71,320 KB
testcase_32 AC 68 ms
71,232 KB
testcase_33 AC 67 ms
71,148 KB
testcase_34 WA -
testcase_35 AC 69 ms
71,188 KB
testcase_36 AC 70 ms
71,328 KB
testcase_37 AC 69 ms
71,072 KB
testcase_38 AC 70 ms
71,240 KB
testcase_39 AC 68 ms
71,240 KB
testcase_40 AC 68 ms
71,340 KB
testcase_41 AC 68 ms
71,192 KB
testcase_42 AC 69 ms
71,260 KB
testcase_43 AC 68 ms
71,456 KB
testcase_44 AC 70 ms
71,376 KB
testcase_45 AC 69 ms
71,264 KB
testcase_46 AC 70 ms
71,308 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 not L:
        print('FAILURE')
        exit()
    if L[1]-L[0] == 1:
        print('FAILURE')
    else:
        print('SUCCESS')
else:
    print('FAILURE')
0