#1602: a009 ans


1652401-2@g.puiching.edu.mo (P6D14林建壹)

School : Pui Ching Middle School
ID : 2963
IP address : [192.168.120.33]
Last Login :
2024-06-22 10:01:34
a009. 沒有手機的下課時間 -- 板橋高中教學題 | From: [192.168.120.33] | Post Date : 2024-05-28 09:00

#in the first line, input the ans

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')

 

 
#1609: Re:a009 ans


1551946-5@g.puiching.edu.mo (S1B37錢經天)

School : No School
ID : 2372
IP address : [192.168.120.33]
Last Login :
2024-07-11 00:57:08
a009. 沒有手機的下課時間 -- 板橋高中教學題 | From: [192.168.120.33] | Post Date : 2024-06-01 21:47

you know how to copy, right? 



 
ZeroJudge Forum