#39552: python 不使用if 的方法


henry0985524680@gmail.com (張弘勳)


對輸入的數字以3取餘數,只會有0、1、2三種值,對應輸出
 
 
 
n=int(input())
mot=[]
while True:
    try:
        mot.append(int(input())%3)
    except :
        break
print(mot.count(0),mot.count(1),mot.count(2))