結果

問題 No.197 手品
ユーザー titiatitia
提出日時 2022-06-02 00:38:28
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 558 bytes
コンパイル時間 321 ms
コンパイル使用メモリ 11,900 KB
実行使用メモリ 10,144 KB
最終ジャッジ日時 2023-10-21 01:02:29
合計ジャッジ時間 4,122 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
10,112 KB
testcase_01 AC 27 ms
10,112 KB
testcase_02 AC 25 ms
10,112 KB
testcase_03 AC 25 ms
10,112 KB
testcase_04 AC 25 ms
10,112 KB
testcase_05 AC 26 ms
10,112 KB
testcase_06 AC 25 ms
10,112 KB
testcase_07 AC 26 ms
10,112 KB
testcase_08 AC 25 ms
10,112 KB
testcase_09 AC 24 ms
10,112 KB
testcase_10 AC 24 ms
10,112 KB
testcase_11 AC 24 ms
10,112 KB
testcase_12 AC 25 ms
10,112 KB
testcase_13 AC 25 ms
10,112 KB
testcase_14 AC 25 ms
10,112 KB
testcase_15 AC 25 ms
10,112 KB
testcase_16 AC 24 ms
10,112 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 26 ms
10,112 KB
testcase_24 AC 25 ms
10,112 KB
testcase_25 AC 26 ms
10,112 KB
testcase_26 AC 27 ms
10,112 KB
testcase_27 AC 26 ms
10,112 KB
testcase_28 AC 26 ms
10,112 KB
testcase_29 AC 25 ms
10,112 KB
testcase_30 AC 25 ms
10,112 KB
testcase_31 AC 26 ms
10,112 KB
testcase_32 AC 25 ms
10,112 KB
testcase_33 AC 26 ms
10,112 KB
testcase_34 AC 26 ms
10,112 KB
testcase_35 AC 25 ms
10,112 KB
testcase_36 AC 26 ms
10,112 KB
testcase_37 WA -
testcase_38 AC 27 ms
10,112 KB
testcase_39 AC 26 ms
10,112 KB
testcase_40 AC 25 ms
10,112 KB
testcase_41 AC 26 ms
10,112 KB
testcase_42 AC 28 ms
10,112 KB
testcase_43 AC 28 ms
10,112 KB
testcase_44 WA -
testcase_45 AC 25 ms
10,112 KB
testcase_46 AC 25 ms
10,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S=input()
N=int(input())
T=input()

if S.count("o")!=T.count("o"):
    print("SUCCESS")
    exit()

if S.count("o")==3 or S.count("o")==0:
    print("FAILURE")
    exit()

if N==0:
    if S==T:
        print("FAILURE")
    else:
        print("SUCCESS")
    exit()

N%=2

if N==1:
    A=list(S)

    A[0],A[1]=A[1],A[0]

    if A==list(T):
        print("FAILURE")
        exit()

    A[0],A[1]=A[1],A[0]
    A[2],A[1]=A[1],A[2]

    if A==list(T):
        print("FAILURE")
        exit()

    print("SUCCESS")
    exit()

if N==0:
    print("FAILURE")
    
0