#coding=UTF-8 #365日のトライ dom=[31,28,31,30,31,30,31,31,30,31,30,31] #2 4 6 9 11 doy=0 for idx in range(0,12,1): doy=doy+dom[idx] #print(doy) ans=0 for idx in range(0,12,1): for idy in range(0,dom[idx],1): # print("%02d" % (idy+1)) moji="%02d" % (idy+1) hica=int(moji[0])+int(moji[1]) if idx+1==hica:#0-orginに注意 ans=ans+1 print(ans)