#39673: 自己抄


qiyalin136 (JAK)

學校 : 國立中山大學附屬國光高級中學
編號 : 262986
來源 : [163.32.67.241]
最後登入時間 :
2024-04-29 11:33:38
a058. MOD3 | From: [163.32.67.241] | 發表日期 : 2024-03-18 11:54

解答

 

n=int(input())
mot=[]
while True:
    try:
        mot.append(int(input())%3)
    except :
        break
print(mot.count(0),mot.count(1),mot.count(2))
 
ZeroJudge Forum