30分,124569 10点WA
查看原帖
30分,124569 10点WA
857173
SandWave2023楼主2023/2/23 21:15
#include<bits/stdc++.h>
using namespace std;
long long x,ans=8;char c;
int main()
{
	cin>>x>>c;
	if(x>1000)
	{
		ans+=(int)(floor((x-1000)/500.0)*4);
	}
	if(c=='y')	ans+=5;
	cout<<ans;
 	return 0;
}
2023/2/23 21:15
加载中...