結果
問題 | No.69 文字を自由に並び替え |
ユーザー |
![]() |
提出日時 | 2017-04-17 19:30:20 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 15 ms / 5,000 ms |
コード長 | 248 bytes |
コンパイル時間 | 53 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-14 06:34:31 |
合計ジャッジ時間 | 1,041 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 |
ソースコード
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"