#include <stdio.h>
int main() {
double price;//衣服价格
int month, day; //日期:月日
int x;//1表示有优惠卷,2表示无。
scanf("%lf %d %d %d", &price, &month, &day, &x);
if (month == 11 && day == 11) {
if (x == 1) {
if (price * 0.7 - 50 > 0) {
printf("%.2lf", price * 0.7 - 50);
} else {
printf("0.00");
}
} else {
printf("%.2lf", 0.7 * price);
}
} else {
if (x == 1) {
if (price * 0.8 - 50 > 0) {
printf("%.2lf", price * 0.8 - 50);
} else {
printf("0.00");
}
} else {
printf("%.2lf", 0.8 * price);
}
}
return 0;
}

京公网安备 11010502036488号