結果

問題 No.69 文字を自由に並び替え
ユーザー takamich-Tatakamich-Ta
提出日時 2017-09-10 12:26:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 254 bytes
コンパイル時間 110 ms
コンパイル使用メモリ 10,524 KB
実行使用メモリ 7,988 KB
最終ジャッジ日時 2023-09-09 21:21:54
合計ジャッジ時間 1,139 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

a=input()
b=input()
c=0
d=0
for i in range(len(a)):
    if a[i] in b:
        c=1
    else:
        break


for i in range(len(b)):
    if b[i] in a:
        d=1
    else:
        break

if c==1 and d==1:
    print("YES")

else:
    print("NO")
        
0