题解
2025-10-03 11:46:40
发布于:浙江
0阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int x,m;
char c;
int main(){
cin>>x>>c;
if(x>1000){
x-=1000;
m+=8+x/500*4;
}else{
m+=8;
}if(c=='y'){
m+=5;
}if(x%500!=0){
m+=4;
}
cout<<m;
return 0;
}
这里空空如也





有帮助,赞一个