結果

問題 No.69 文字を自由に並び替え
ユーザー kohei2019kohei2019
提出日時 2021-05-21 23:54:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 5,000 ms
コード長 208 bytes
コンパイル時間 511 ms
コンパイル使用メモリ 82,296 KB
実行使用メモリ 54,620 KB
最終ジャッジ日時 2024-04-18 17:02:57
合計ジャッジ時間 1,816 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
53,888 KB
testcase_01 AC 40 ms
54,620 KB
testcase_02 AC 41 ms
54,560 KB
testcase_03 AC 41 ms
54,052 KB
testcase_04 AC 42 ms
53,364 KB
testcase_05 AC 41 ms
53,624 KB
testcase_06 AC 42 ms
54,100 KB
testcase_07 AC 41 ms
53,956 KB
testcase_08 AC 41 ms
53,864 KB
testcase_09 AC 40 ms
53,616 KB
testcase_10 AC 40 ms
54,272 KB
testcase_11 AC 41 ms
53,296 KB
testcase_12 AC 40 ms
53,296 KB
testcase_13 AC 38 ms
54,104 KB
testcase_14 AC 41 ms
54,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections
A = list(input())
B = list(input())
cA = collections.Counter(A)
cB = collections.Counter(B)

for key in cA.keys():
    if cA[key] != cB[key]:
        print('NO')
        exit()
print('YES')
0