题解 | #网购#
网购
https://www.nowcoder.com/practice/5d7dfd405e5f4e4fbfdff6862c46b751
#include <stdio.h>
int main() {
float jg;
int mouth,days,yh;
scanf("%f %d %d %d",&jg,&mouth,&days,&yh);
if(mouth==11&&days==11){
if(yh==1){
if((jg*0.7-50)<0){
printf("0.00");
}
else{
printf("%.2f",jg*0.7-50);
}
}
else{
printf("%.2f",jg*0.7);
}
}
else if(mouth==12&&days==12){
if(yh==1){
float i=jg*0.8-50;
printf("%.2f",i);
}
else{
printf("%.2f",jg*0.8);
}
}
return 0;
}