結果

問題 No.69 文字を自由に並び替え
ユーザー mlihua09mlihua09
提出日時 2020-08-23 01:38:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 67 ms / 5,000 ms
コード長 205 bytes
コンパイル時間 404 ms
コンパイル使用メモリ 86,988 KB
実行使用メモリ 71,456 KB
最終ジャッジ日時 2023-08-05 15:29:17
合計ジャッジ時間 2,561 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
71,192 KB
testcase_01 AC 62 ms
71,092 KB
testcase_02 AC 63 ms
71,436 KB
testcase_03 AC 67 ms
71,028 KB
testcase_04 AC 64 ms
71,320 KB
testcase_05 AC 61 ms
71,232 KB
testcase_06 AC 62 ms
71,088 KB
testcase_07 AC 62 ms
71,236 KB
testcase_08 AC 61 ms
71,036 KB
testcase_09 AC 63 ms
71,236 KB
testcase_10 AC 61 ms
70,920 KB
testcase_11 AC 60 ms
71,456 KB
testcase_12 AC 59 ms
71,272 KB
testcase_13 AC 60 ms
71,072 KB
testcase_14 AC 60 ms
71,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


A = [0] * 26

B = [0] * 26

for i in input():
    
    A[ord(i) - 97] += 1
    
for i in input():
    
    B[ord(i) - 97] += 1
    


if A == B:
    
    
    print('YES')
    
else:
    
    print('NO')
0