题解 | #网购#
网购
http://www.nowcoder.com/practice/5d7dfd405e5f4e4fbfdff6862c46b751
#include<stdio.h>
int main()
{
float pre=0;
int a=0,b=0,c=0;
scanf("%f %d %d %d",&pre,&a,&b,&c);
if(a==11&&b==11)
pre=pre*0.7;
if(a==12&&b==12)
pre=pre*0.8;
if(c==1)
pre-=50;
if(pre<=0)
pre=0;
printf("%.2f",pre);
return 0;
}