結果

問題 No.69 文字を自由に並び替え
コンテスト
ユーザー bellangeldindon
提出日時 2017-06-01 20:16:23
言語 PyPy2
(7.3.15)
結果
WA  
実行時間 -
コード長 241 bytes
記録
コンパイル時間 136 ms
コンパイル使用メモリ 77,412 KB
最終ジャッジ日時 2025-12-03 23:52:57
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

def strtolist(s):
	lst = []
	for i in range(0, len(s)):
		lst.append(s[i])
	return lst

def judge(a, b):
	if a == b:
		return 'YES'
	else:
		return 'NO'

a = strtolist(raw_input()).sort()
b = strtolist(raw_input()).sort()

print judge(a, b)
0