You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.1 KiB

#include <bits/stdc++.h>
using namespace std;
int main() {
//cin读入优化
std::ios::sync_with_stdio(false);
//输入+输出重定向
freopen("../1293.txt", "r", stdin);
//一筒(Ipin)、九筒(Chupin)、一索(Isou)、九索(Chusou)、一万(Iwan)、九万(Chuwan)、东(Ton)、南(Nan)、西(Sha)、北(Pei)、白(Haku)、发(Hatsu)、中(Chun)
unordered_map<string, int> _map;
_map["Ipin"] = 1;
_map["Chupin"] = 1;
_map["Isou"] = 1;
_map["Chusou"] = 1;
_map["Iwan"] = 1;
_map["Chuwan"] = 1;
_map["Ton"] = 1;
_map["Nan"] = 1;
_map["Sha"] = 1;
_map["Pei"] = 1;
_map["Haku"] = 1;
_map["Hatsu"] = 1;
_map["Chun"] = 1;
string a[15];
bool duanYaoJiu = true;
for (int i = 1; i <= 14; i++) {
cin >> a[i];
if (_map.count(a[i]) > 0) duanYaoJiu = false;
}
if (duanYaoJiu) cout << "Rong,Duan Yao Jiu,1000 Dian" << endl;
else cout << "Gong Fu Zai Gao,Ye Pa Duan Yao" << endl;
//关闭文件
fclose(stdin);
return 0;
}