题解 | #牛牛的快递#
牛牛的快递
https://www.nowcoder.com/practice/41b42e7b3c3547e3acf8e90c41d98270
a,b=input().split() if float(a)<=1 and b=="y": print(25) elif float(a)<=1 and b=="n": print(20) elif float(a)>1 and float(a)%1==0 and b=="y": print(int(20+(float(a)-1)*1+5)) elif float(a)>1 and float(a)%1==0 and b=="n": print(int(20 + (float(a) - 1) * 1)) elif float(a)>1 and float(a)%1!=0 and b=="y": print(int(20+(float(a)//1 - 1+1)*1+5)) else: print(int(20+(float(a)//1 - 1+1)*1))