0
已解决
常宇宸
初级守护
初级守护
#include<bits/stdc++.h>
using namespace std;
int main()
{
char c;
double a,b,v,x,y;
cin>>x>>c;
if(x<=1000&&c=='n') cout<<"YD"<<endl;
if(x<=1000&&c=='y')cout<<"Same"<<endl;
if(x>1000&&c=='n'&&(x-1000)<=1500) cout<<"YD"<<endl;
if(x>1000&&c=='y'&&(x-1000)<=1500) cout<<"SF"<<endl;
if(x>1000&&c=='n'&&x>=3000)cout<<"SF"<<endl;
if(x>1000&&c=='y'&&x>=3000)cout<<"SF"<<endl;
}