結果

問題 No.69 文字を自由に並び替え
ユーザー ktshunktshun
提出日時 2015-05-30 23:26:18
言語 Python2
(2.7.18)
結果
AC  
実行時間 13 ms / 5,000 ms
コード長 226 bytes
コンパイル時間 327 ms
コンパイル使用メモリ 6,668 KB
実行使用メモリ 6,364 KB
最終ジャッジ日時 2023-08-20 23:00:28
合計ジャッジ時間 1,384 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
6,200 KB
testcase_01 AC 12 ms
6,204 KB
testcase_02 AC 13 ms
6,192 KB
testcase_03 AC 13 ms
6,364 KB
testcase_04 AC 13 ms
6,208 KB
testcase_05 AC 13 ms
6,352 KB
testcase_06 AC 12 ms
6,240 KB
testcase_07 AC 13 ms
6,356 KB
testcase_08 AC 13 ms
6,296 KB
testcase_09 AC 13 ms
6,332 KB
testcase_10 AC 13 ms
6,356 KB
testcase_11 AC 13 ms
6,276 KB
testcase_12 AC 12 ms
6,244 KB
testcase_13 AC 12 ms
6,264 KB
testcase_14 AC 13 ms
6,356 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding:utf-8 -*-

import collections

if __name__ == "__main__":
	a = raw_input()
	b = raw_input()
	counta = collections.Counter(a)
	countb = collections.Counter(b)
	if counta == countb:
		print "YES"
	else:
		print "NO"
0