結果

問題 No.69 文字を自由に並び替え
ユーザー 0x6d61
提出日時 2017-08-05 14:05:12
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 298 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-06-27 13:49:28
合計ジャッジ時間 1,221 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

def replace(A,B):
    reverse = []
    for i in B:
        for j  in A:
            if i == j:
                reverse.append(j)
                break
    if ''.join(reverse) == ''.join(B):
        return "YES"
    else:
        return "NO"

A = list(input())
B = list(input())

print(replace(A,B))
0