結果

問題 No.69 文字を自由に並び替え
ユーザー brthyyjpbrthyyjp
提出日時 2020-11-22 15:44:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 95 ms / 5,000 ms
コード長 215 bytes
コンパイル時間 1,319 ms
コンパイル使用メモリ 86,672 KB
実行使用メモリ 71,748 KB
最終ジャッジ日時 2023-09-30 22:55:04
合計ジャッジ時間 2,551 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 93 ms
71,520 KB
testcase_01 AC 92 ms
71,496 KB
testcase_02 AC 93 ms
71,364 KB
testcase_03 AC 92 ms
71,496 KB
testcase_04 AC 92 ms
71,748 KB
testcase_05 AC 92 ms
71,596 KB
testcase_06 AC 93 ms
71,744 KB
testcase_07 AC 92 ms
71,516 KB
testcase_08 AC 95 ms
71,564 KB
testcase_09 AC 92 ms
71,740 KB
testcase_10 AC 91 ms
71,648 KB
testcase_11 AC 90 ms
71,664 KB
testcase_12 AC 92 ms
71,424 KB
testcase_13 AC 91 ms
71,576 KB
testcase_14 AC 91 ms
71,432 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a = str(input())
b = str(input())

from collections import Counter
ca = Counter(a)
cb = Counter(b)
ca = list(ca.items())
cb = list(cb.items())
ca.sort()
cb.sort()
if ca == cb:
    print('YES')
else:
    print('NO')
0