wenyuchixiao @ 2025-01-11 13:49:19
#include<bits/stdc++.h>
using namespace std;
int main() {
long long x;
char a,b;
cin>>x>>a>>b;
if((a=='B'&&b!='C')||(b=='B'&&a!='C')) cout<<x/10*8;
else if((a=='C'&&b!='B')||(b=='C'&&a!='B')) cout<<x/10*7;
else if(a=='C'&&b=='B') cout<<x/10*6;
else cout<<x;
return 0;
}
我寻思着好像也没有问题吧