結果

問題 No.69 文字を自由に並び替え
ユーザー 👑 KazunKazun
提出日時 2020-05-31 15:01:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 73 ms / 5,000 ms
コード長 218 bytes
コンパイル時間 282 ms
コンパイル使用メモリ 87,108 KB
実行使用メモリ 71,612 KB
最終ジャッジ日時 2023-08-11 01:29:13
合計ジャッジ時間 2,603 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,216 KB
testcase_01 AC 66 ms
71,580 KB
testcase_02 AC 71 ms
71,172 KB
testcase_03 AC 68 ms
71,368 KB
testcase_04 AC 73 ms
71,376 KB
testcase_05 AC 70 ms
71,136 KB
testcase_06 AC 70 ms
71,612 KB
testcase_07 AC 70 ms
71,116 KB
testcase_08 AC 68 ms
71,396 KB
testcase_09 AC 68 ms
71,584 KB
testcase_10 AC 68 ms
71,548 KB
testcase_11 AC 68 ms
71,124 KB
testcase_12 AC 69 ms
71,360 KB
testcase_13 AC 70 ms
71,324 KB
testcase_14 AC 69 ms
71,168 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