#37835: python


s014052@stu.chsc.tw (夆)

學校 : 國立彰化高級商業職業學校
編號 : 187680
來源 : [223.141.57.221]
最後登入時間 :
2024-05-17 14:11:41
e624. 10340 - All in All -- UVA | From: [1.165.14.33] | 發表日期 : 2023-10-12 16:29

我覺得不用想太難

可以參考我的不會可以問我~

while 1:
    try:
        s,t=map(str,input().split())
        for i in range(26):
            if chr(97+i) not in s:
                t=t.replace(chr(97+i),'')
            if chr(65+i) not in s:
                t=t.replace(chr(65+i),'')
        if s in t:
            print('Yes')
        else:
            print('No')
    except:
        break
 
ZeroJudge Forum