AC code
2026-07-27 10:26:18
发布于:上海
2阅读
0回复
0点赞
WA
能AC
code:
#include <bits/stdc++.h>
using namespace std;
int main()
{
int x,ans=8;
char c;
cin>>x>>c;
if(x>1000)
{
x-=1000;
ans=ans+(x/500)*4;
if(x%500!=0)
{
ans+=4;
}
}
if(c=='y') ans+=5;
cout << ans;
return 0;
}
这里空空如也




有帮助,赞一个