C++比赛真题——梦幻扑克

在这里插入图片描述
在这里插入图片描述

//Author:PanDaoxi
#include <iostream>
using namespace std;
int main(){
    
    
	char a,b;
	int c,d;
	cin>>a>>b>>c>>d;
	if(a!=b&&c!=d) cout<<"ordinary"<<endl;
	else if(a==b) cout<<"especially"<<endl;
	else if(c==d) cout<<"legendary"<<endl;
	return 0;
}

猜你喜欢

转载自blog.csdn.net/PanDaoxi2020/article/details/121454390
今日推荐