結果

問題 No.69 文字を自由に並び替え
ユーザー gorugo30
提出日時 2021-02-22 21:26:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 44 ms / 5,000 ms
コード長 223 bytes
コンパイル時間 204 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-09-21 16:59:47
合計ジャッジ時間 1,653 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

alp = [chr(ord("a") + i) for i in range(26)]
A = input()
B = input()
ans = True
for i in range(26):
    if A.count(alp[i]) != B.count(alp[i]):
        ans = False
        break
if ans:
    print("YES")
else:
    print("NO")
0