結果

問題 No.69 文字を自由に並び替え
ユーザー kkron4221kkron4221
提出日時 2019-01-20 11:16:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 213 bytes
コンパイル時間 242 ms
コンパイル使用メモリ 10,620 KB
実行使用メモリ 7,972 KB
最終ジャッジ日時 2023-09-28 21:16:59
合計ジャッジ時間 1,401 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 17 ms
7,824 KB
testcase_02 AC 16 ms
7,836 KB
testcase_03 AC 16 ms
7,864 KB
testcase_04 WA -
testcase_05 AC 16 ms
7,972 KB
testcase_06 AC 16 ms
7,780 KB
testcase_07 AC 16 ms
7,776 KB
testcase_08 AC 16 ms
7,888 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 15 ms
7,804 KB
testcase_12 AC 16 ms
7,744 KB
testcase_13 WA -
testcase_14 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

a = input()
b = input()

a_list = list(a)
b_list = list(b)

a_list.sort()
b_list.sort()
ans = 0
for i in a_list:
    try:
        ans = b_list.index(i)
    except:
        print('NO')
if ans != 0:
    print('YES')
0