結果

問題 No.69 文字を自由に並び替え
ユーザー gorugo30gorugo30
提出日時 2021-02-22 21:26:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 33 ms / 5,000 ms
コード長 223 bytes
コンパイル時間 198 ms
コンパイル使用メモリ 81,760 KB
実行使用メモリ 53,528 KB
最終ジャッジ日時 2023-10-21 15:45:58
合計ジャッジ時間 1,622 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
53,528 KB
testcase_01 AC 30 ms
53,528 KB
testcase_02 AC 30 ms
53,528 KB
testcase_03 AC 29 ms
53,528 KB
testcase_04 AC 29 ms
53,528 KB
testcase_05 AC 30 ms
53,528 KB
testcase_06 AC 30 ms
53,528 KB
testcase_07 AC 30 ms
53,528 KB
testcase_08 AC 29 ms
53,528 KB
testcase_09 AC 29 ms
53,528 KB
testcase_10 AC 29 ms
53,528 KB
testcase_11 AC 29 ms
53,528 KB
testcase_12 AC 32 ms
53,528 KB
testcase_13 AC 31 ms
53,528 KB
testcase_14 AC 31 ms
53,528 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

alp = [chr(ord("a") + i) for i in range(26)]
A = input()
B = input()
ans = True
for i in range(26):
    if A.count(alp[i]) != B.count(alp[i]):
        ans = False
        break
if ans:
    print("YES")
else:
    print("NO")
0