結果

問題 No.69 文字を自由に並び替え
ユーザー 👑 KazunKazun
提出日時 2020-05-31 15:01:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 5,000 ms
コード長 218 bytes
コンパイル時間 369 ms
コンパイル使用メモリ 82,376 KB
実行使用メモリ 53,316 KB
最終ジャッジ日時 2024-04-28 18:39:36
合計ジャッジ時間 1,544 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,968 KB
testcase_01 AC 38 ms
52,616 KB
testcase_02 AC 38 ms
53,100 KB
testcase_03 AC 39 ms
52,340 KB
testcase_04 AC 38 ms
52,628 KB
testcase_05 AC 38 ms
51,960 KB
testcase_06 AC 38 ms
52,760 KB
testcase_07 AC 38 ms
52,280 KB
testcase_08 AC 38 ms
53,316 KB
testcase_09 AC 38 ms
52,700 KB
testcase_10 AC 38 ms
52,888 KB
testcase_11 AC 39 ms
52,208 KB
testcase_12 AC 37 ms
53,012 KB
testcase_13 AC 38 ms
52,824 KB
testcase_14 AC 39 ms
52,140 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A=input()
B=input()

C={}
D={}

for a in A:
    if a in C:
        C[a]+=1
    else:
        C[a]=1

for b in B:
    if b in D:
        D[b]+=1
    else:
        D[b]=1

if C==D:
    print("YES")
else:
    print("NO")
0