結果
| 問題 | No.69 文字を自由に並び替え | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2019-10-29 22:20:55 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 30 ms / 5,000 ms | 
| コード長 | 265 bytes | 
| コンパイル時間 | 247 ms | 
| コンパイル使用メモリ | 12,288 KB | 
| 実行使用メモリ | 10,496 KB | 
| 最終ジャッジ日時 | 2024-09-14 21:38:11 | 
| 合計ジャッジ時間 | 1,324 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 15 | 
ソースコード
A = input()
B = input()
sort_a = sorted(A)
sort_b = sorted(B)
if A == B:
    print('YES')
elif len(A) == len(B):
    for a, b in zip(sort_a, sort_b):
        if a != b:
            print('NO')
            break
    else:
        print('YES')
else:
    print('NO')
            
            
            
        