不走寻常路的题解——不用判断写题解!
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
string word[2]={"no","yes"};
cout<<word[(n>50 and n%2==0)];
return 0;
}
利用判断的性质就可以写出如下题解~
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
string word[2]={"no","yes"};
cout<<word[(n>50 and n%2==0)];
return 0;
}
利用判断的性质就可以写出如下题解~