close
# include <iostream>
using namespace std;
int main()
{
double x,y,z,t,w;
int a=0;
while(a<3)
{
cin>>x ;
cin>>y ;
cin>>z ;
t = x*200 + y*300 + z*500;
if(2000>t && t>=1000)
{
w=t*0.9;
}
else if(3000>t && t>=2000)
{
w=t*0.85;
}
else if(t>3000)
{
w=t*0.8;
}
cout<<t<<endl;
cout<<w<<endl;
}
return 0;
}
using namespace std;
int main()
{
double x,y,z,t,w;
int a=0;
while(a<3)
{
cin>>x ;
cin>>y ;
cin>>z ;
t = x*200 + y*300 + z*500;
if(2000>t && t>=1000)
{
w=t*0.9;
}
else if(3000>t && t>=2000)
{
w=t*0.85;
}
else if(t>3000)
{
w=t*0.8;
}
cout<<t<<endl;
cout<<w<<endl;
}
return 0;
}
全站熱搜
留言列表