結果

問題 No.69 文字を自由に並び替え
ユーザー R N
提出日時 2020-07-26 11:10:27
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 30 ms / 5,000 ms
コード長 238 bytes
コンパイル時間 86 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-06-28 09:58:56
合計ジャッジ時間 1,166 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding:utf-8

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

count = 0

for i in A:
    if i in B:
        B.remove(i)
        count += 1
    else:
        continue

if count == len(A):
    print("YES")
else:
    print("NO")
0