タクシー代
638 ワード
/*
: http://codeup.cn/problem.php?cid=100000584&pid=1
*/
/*
, ;
, ;
*/
#include
using namespace std;
#define ll long long
int main()
{
int n;
while(cin>>n&&n)
{
if(n<=4)
{
cout<<10<0)
{
double money=t*18+m*2.4;
printf("%.1lf
",money);
}
else
{
int money=t*18;
if(m)
{
money=t*18+(m-4)*2+10;
}
printf("%d
",money);
}
}
return 0;
}