GoodLuckCat @ 2023-12-31 12:45:35
111
by LeoZhao2023 @ 2023-12-31 13:29:06
少了买两个A的情况
by 4A1BF2A6 @ 2024-03-14 10:24:16
if((a=='B' || b =='B') && a!='C'&& b!='C'){
cout << x*8/10;
}else if((a=='C' || b =='C') && a!='B'&& b!='B'){
cout << x*7/10;
}else if((a=='B' || b =='B') && (a=='C' || b =='C')&&a!=b){
cout << x*6/10;
}else{
//AA的情况,BB,CC上面判断语句已经包含
cout << x;
}