結果

問題 No.69 文字を自由に並び替え
ユーザー bellangeldindonbellangeldindon
提出日時 2017-06-01 20:16:23
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 241 bytes
コンパイル時間 381 ms
コンパイル使用メモリ 6,668 KB
実行使用メモリ 6,068 KB
最終ジャッジ日時 2023-09-09 21:18:03
合計ジャッジ時間 991 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,852 KB
testcase_01 WA -
testcase_02 AC 11 ms
5,868 KB
testcase_03 AC 11 ms
5,932 KB
testcase_04 WA -
testcase_05 AC 11 ms
5,880 KB
testcase_06 AC 10 ms
5,856 KB
testcase_07 AC 11 ms
5,956 KB
testcase_08 AC 10 ms
5,880 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 10 ms
5,932 KB
testcase_12 AC 10 ms
5,968 KB
testcase_13 WA -
testcase_14 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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