結果

問題 No.69 文字を自由に並び替え
ユーザー eiji1000eiji1000
提出日時 2019-03-08 10:32:47
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 227 bytes
コンパイル時間 72 ms
コンパイル使用メモリ 10,544 KB
実行使用メモリ 8,464 KB
最終ジャッジ日時 2023-09-05 19:34:32
合計ジャッジ時間 1,097 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,464 KB
testcase_01 WA -
testcase_02 AC 18 ms
8,380 KB
testcase_03 AC 18 ms
8,316 KB
testcase_04 WA -
testcase_05 AC 18 ms
8,376 KB
testcase_06 AC 18 ms
8,380 KB
testcase_07 AC 18 ms
8,320 KB
testcase_08 AC 18 ms
8,360 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 19 ms
8,308 KB
testcase_12 AC 18 ms
8,352 KB
testcase_13 WA -
testcase_14 WA -
権限があれば一括ダウンロードができます

ソースコード

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