結果

問題 No.69 文字を自由に並び替え
ユーザー eiji1000
提出日時 2019-03-08 10:32:47
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 227 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-06-23 14:57:26
合計ジャッジ時間 1,172 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections

a = input()
b = input()

a_list = list(a)
b_list = list(b)

a_counter = collections.Counter(a_list)
b_counter = collections.Counter(b_list)


if a_counter == b_counter:
    print('YES')
else:
    print('No')
0