#include <stdio.h>
int main()
{
float clothes = 0;
int month = 0;
int day = 0;
int input = 0;
scanf("%f %d %d %d", &clothes, &month, &day, &input);
if (month == 11 && day == 11)
clothes *= 0.7;
else if (month == 12 && day == 12)
clothes *= 0.8;
//少于50,则用不了优惠卷
if (input == 1 && clothes >= 50)
clothes -= 50;
printf("%.2f", clothes);
return 0;
}
KiKi双十一双十二买衣服
于 2024-07-13 10:53:56 首次发布