結果
問題 | No.69 文字を自由に並び替え |
ユーザー |
![]() |
提出日時 | 2019-05-06 10:03:52 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 5,000 ms |
コード長 | 222 bytes |
コンパイル時間 | 109 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-12-14 07:26:43 |
合計ジャッジ時間 | 1,239 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 |
ソースコード
def char_counter(S:str):cc = {}for s in S:cc.setdefault(s,0)cc[s]+=1return ccA = input()B = input()is_eql = A == B or char_counter(A) == char_counter(B)print("YES" if is_eql else "NO")