#1528: use python small


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

School : Pui Ching Middle School
ID : 2372
IP address : [192.168.120.33]
Last Login :
2025-03-24 17:29:00
a009. 沒有手機的下課時間 -- 板橋高中教學題 | From: [192.168.120.33] | Post Date : 2024-05-06 20:31

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

 
#1935: Re:use python small


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 21:01

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

 

 

Use c++, ok if anyone use python then they are gay. Python is trash, c++ too, but at least better than python.



 
#1938: Re:use python small


1753422-4@g.puiching.edu.mo (P5A30廖善衡)

School : No School
ID : 2950
IP address : [192.168.120.33]
Last Login :
2025-03-20 11:41:41
a009. 沒有手機的下課時間 -- 板橋高中教學題 | From: [192.168.120.33] | Post Date : 2025-04-14 21:08

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

 

 

Use c++, ok if anyone use python then they are gay. Python is trash, c++ too, but java script is better :)





 
#1940: Re:use python small


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 21:09

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

 

Huh, bro see a008 my 人氣very sus







 
ZeroJudge Forum