#1934: The answer of a009 but just give me 10 robux (cheaper than Ethan) but if u don't give me i will report you to the teacher(real) this time answer is python


1753980-3@g.puiching.edu.mo (P5A31蒲雋浠)

School : No School
ID : 2571
IP address : [192.168.120.33]
Last Login :
2025-03-20 12:13:05
a009. 沒有手機的下課時間 -- 板橋高中教學題 | From: [192.168.120.33] | Post Date : 2025-04-14 20:58

ans = input()

gtimes = int(input())

for i in range(gtimes):

    a = 0

    b = 0

    gans = input()

    for j in range(4):

        if ans[j] == gans[j]:

            a+=1

        elif gans[j] in ans:

            b+=1

    print(str(a)+'A'+str(b)+'B')

 
ZeroJudge Forum