提交时间:2019-10-14 19:47:18
运行 ID: 1611
#include<iostream> int main() { double baggage; double cost; scanf("%lf",&baggage); if(baggage>10) cost=10*2.5+(baggage-10)*1.5; else cost=baggage*2.5; printf("%.1lf",cost); //精确到小数点后1位 return 0; }