結果

問題 No.69 文字を自由に並び替え
ユーザー muuyuummuuyuum
提出日時 2016-07-12 01:06:27
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 5,000 ms
コード長 200 bytes
コンパイル時間 58 ms
コンパイル使用メモリ 6,944 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-14 06:19:08
合計ジャッジ時間 857 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

a = raw_input()
b = raw_input()
for x in a:
    for y in b:
        if x == y:
            a = a.replace(x,"",1)
            b = b.replace(x,"",1)
if len(a) == 0:
    print "YES"
else:
    print "NO"
0