結果

問題 No.197 手品
ユーザー s_shoheis_shohei
提出日時 2020-08-02 18:41:11
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 399 bytes
コンパイル時間 284 ms
コンパイル使用メモリ 87,280 KB
実行使用メモリ 71,648 KB
最終ジャッジ日時 2023-09-26 09:49:51
合計ジャッジ時間 5,720 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 72 ms
71,120 KB
testcase_02 AC 69 ms
71,556 KB
testcase_03 AC 71 ms
71,272 KB
testcase_04 AC 75 ms
71,496 KB
testcase_05 AC 72 ms
71,540 KB
testcase_06 AC 72 ms
71,256 KB
testcase_07 WA -
testcase_08 AC 71 ms
71,608 KB
testcase_09 AC 70 ms
71,528 KB
testcase_10 AC 69 ms
71,496 KB
testcase_11 AC 69 ms
71,556 KB
testcase_12 AC 71 ms
71,416 KB
testcase_13 AC 72 ms
71,284 KB
testcase_14 AC 70 ms
71,384 KB
testcase_15 AC 70 ms
71,572 KB
testcase_16 AC 71 ms
71,272 KB
testcase_17 AC 71 ms
71,404 KB
testcase_18 AC 71 ms
71,556 KB
testcase_19 AC 71 ms
71,352 KB
testcase_20 AC 70 ms
71,384 KB
testcase_21 AC 72 ms
71,380 KB
testcase_22 AC 72 ms
71,224 KB
testcase_23 AC 69 ms
71,432 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 70 ms
71,276 KB
testcase_32 AC 71 ms
71,424 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 AC 71 ms
71,608 KB
testcase_36 AC 71 ms
71,288 KB
testcase_37 AC 71 ms
71,284 KB
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 73 ms
71,284 KB
testcase_42 WA -
testcase_43 AC 75 ms
71,348 KB
testcase_44 AC 73 ms
71,428 KB
testcase_45 AC 74 ms
71,400 KB
testcase_46 AC 72 ms
71,276 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

b = input()
n = int(input())
a = input()

if b.count("x") != a.count("x"): # impossible
    print("SUCCESS")
    exit()

if n==0:
    if a==b:
        print("FAILURE")
    else:
        print("SUCCESS")
    exit()

if n>=2:
    print("FAILURE")
    exit()

# n==1
swap1=b[0]+b[2]+b[1]
swap2=b[1]+b[0]+b[2]

print(swap1,swap2)

if swap1==a or swap2==a:
    print("FAILURE")
else:
    print("SUCCESS")
0