結果

問題 No.69 文字を自由に並び替え
ユーザー lunaticcrylunaticcry
提出日時 2016-06-01 21:45:59
言語 Python2
(2.7.18)
結果
AC  
実行時間 11 ms / 5,000 ms
コード長 263 bytes
コンパイル時間 393 ms
コンパイル使用メモリ 6,692 KB
実行使用メモリ 6,016 KB
最終ジャッジ日時 2023-08-20 23:21:48
合計ジャッジ時間 1,346 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,956 KB
testcase_01 AC 11 ms
6,016 KB
testcase_02 AC 11 ms
5,888 KB
testcase_03 AC 11 ms
5,888 KB
testcase_04 AC 11 ms
5,956 KB
testcase_05 AC 10 ms
5,820 KB
testcase_06 AC 11 ms
5,880 KB
testcase_07 AC 11 ms
5,908 KB
testcase_08 AC 11 ms
5,956 KB
testcase_09 AC 11 ms
5,840 KB
testcase_10 AC 10 ms
5,812 KB
testcase_11 AC 11 ms
5,936 KB
testcase_12 AC 11 ms
5,952 KB
testcase_13 AC 10 ms
5,984 KB
testcase_14 AC 11 ms
5,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
__author__ = 'yuuki'

S1 = raw_input()
S2 = raw_input()

N1 = [ord(i) for i in list(S1)]
N1.sort()

N2 = [ord(i) for i in list(S2)]
N2.sort()

for i in xrange(len(N1)):
    if N1[i] != N2[i]:
        print 'NO'
        exit()

print 'YES'
0