結果

問題 No.69 文字を自由に並び替え
コンテスト
ユーザー mayoko_
提出日時 2017-04-17 19:30:20
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 107 ms / 5,000 ms
コード長 248 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 151 ms
コンパイル使用メモリ 77,600 KB
最終ジャッジ日時 2025-12-03 23:40:16
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

from collections import defaultdict
A = raw_input()
B = raw_input()
dictA, dictB = defaultdict(int),defaultdict(int) 
for c in A:
	dictA[c] += 1
for c in B:
	dictB[c] += 1

for c in A:
	if (dictA[c] != dictB[c]):
		print "NO"
		exit(0)

print "YES"
0