GoodLuckCat @ 2023-12-30 10:45:12
#include<iostream>
using namespace std;
int main()
{
long long x;
cin>>x;
char a,b;
cin>>a>>b;
if(a>b)swap(a,b);
int aa=a-65,bb=b-65;
if((aa==1||bb==1)&&(aa!=2&&bb!=2))cout<<x/5*4;
if((aa==2||bb==2)&&(aa!=1&&bb!=1))cout<<x/10*7;
if(aa==1&&bb==2)cout<<x/5*3;
}
by wzzzh @ 2023-12-31 12:54:30
@Huyuhao0215 还有不打折的情况