結果

問題 No.69 文字を自由に並び替え
ユーザー HirakeHirake
提出日時 2017-04-03 10:04:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 5,000 ms
コード長 312 bytes
コンパイル時間 461 ms
コンパイル使用メモリ 87,064 KB
実行使用メモリ 71,504 KB
最終ジャッジ日時 2023-08-20 23:38:11
合計ジャッジ時間 2,602 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,084 KB
testcase_01 AC 76 ms
71,464 KB
testcase_02 AC 77 ms
71,240 KB
testcase_03 AC 76 ms
71,196 KB
testcase_04 AC 76 ms
71,480 KB
testcase_05 AC 76 ms
71,400 KB
testcase_06 AC 75 ms
71,432 KB
testcase_07 AC 76 ms
71,140 KB
testcase_08 AC 76 ms
71,080 KB
testcase_09 AC 75 ms
70,992 KB
testcase_10 AC 76 ms
71,356 KB
testcase_11 AC 75 ms
71,344 KB
testcase_12 AC 76 ms
71,088 KB
testcase_13 AC 75 ms
71,504 KB
testcase_14 AC 74 ms
71,504 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s1=list(input ())
s2=list(input ())

def sam(st, st2):
    for i in range(len(st2)):
        if st==st2[i]:
            st2.pop(i)
            return(st2)
            break
    return(0)
y=1
for i in range(len(s1)):
    if sam(s1[i],s2)==0:
        print("NO")
        y=0
        break
if y==1:
    print("YES")
0