先声明一下,这是一篇水帖。
#include<bits/stdc++.h>
using namespace std;
string a;
int main() {
int xunhuan = 0;
while (xunhuan = 1) {
cin >> a;
string b = "zeng";
string c = "jiang";
string d = "zhou";
string e = "yan";
string f = "yao";
string g = "xu";
string h = "zhu";
string i = "huang";
string j = "meng";
string k = "pan";
string l = "fang";
string m = "zhao";
string n = "qian";
string o = "li";
string p = "wu";
string q = "zheng";
string r = "wang";
string s = "feng";
string t = "chen";
string u = "chu";
string v = "wei";
string w = "jiang";
string x = "shen";
string y = "han";
string z = "yang";
string a_1 = "zhu";
string b_1 = "qin";
string c_1 = "you";
string d_1 = "he";
string e_1 = "lu";
string f_1 = "shi";
string g_1 = "zhang";
string h_1 = "kong";
string i_1 = "cao";
string j_1 = "yan";
string k_1 = "hua";
string l_1 = "jin";
string m_1 = "wei";
string n_1 = "tao";
string o_1 = "wei";
string p_1 = "xie";
string q_1 = "zou";
string r_1 = "yu";
string s_1 = "bai";
string t_1 = "shui";
string u_1 = "dou";
string v_1 = "zhang";
string w_1 = "yun";
string::size_type idx;
idx = a.find(b);
if (idx == string::npos )
cout << "";
string::size_type idx_b;
idx_b = a.find(c);
if (idx_b == string::npos )
cout << "";
string::size_type idx_c;
idx_b = a.find(d);
if (idx_c == string::npos )
cout << "";
string::size_type idx_d;
idx = a.find(e);
if (idx_d == string::npos )
cout << "";
string::size_type idx_e;
idx = a.find(f);
if (idx_e == string::npos )
cout << "";
string::size_type idx_f;
idx = a.find(g);
if (idx_f == string::npos )
cout << "";
string::size_type idx_g;
idx = a.find(h);
if (idx_g == string::npos )
cout << "";
string::size_type idx_h;
idx = a.find(i);
if (idx_h == string::npos )
cout << "";
string::size_type idx_i;
idx = a.find(j);
if (idx_i == string::npos )
cout << "";
string::size_type idx_j;
idx = a.find(k);
if (idx_j == string::npos )
cout << "";
string::size_type idx_k;
idx = a.find(l);
if (idx_k == string::npos )
cout << "";
string::size_type idx_l;
idx = a.find(m);
if (idx_l == string::npos )
cout << "";
string::size_type idx_m;
idx = a.find(n);
if (idx_m == string::npos )
cout << "";
string::size_type idx_n;
idx = a.find(o);
if (idx_n == string::npos )
cout << "";
string::size_type idx_o;
idx = a.find(p);
if (idx_o == string::npos )
cout << "";
string::size_type idx_p;
idx = a.find(q);
if (idx_p == string::npos )
cout << "";
string::size_type idx_q;
idx = a.find(r);
if (idx_q == string::npos )
cout << "";
string::size_type idx_r;
idx = a.find(s);
if (idx_r == string::npos )
cout << "";
string::size_type idx_s;
idx = a.find(t);
if (idx_s == string::npos )
cout << "";
string::size_type idx_t;
idx = a.find(u);
if (idx_t == string::npos )
cout << "";
string::size_type idx_u;
idx = a.find(v);
if (idx_u == string::npos )
cout << "";
string::size_type idx_v;
idx = a.find(w);
if (idx_v == string::npos )
cout << "";
string::size_type idx_w;
idx = a.find(x);
if (idx_w == string::npos )
cout << "";
string::size_type idx_x;
idx = a.find(y);
if (idx_x == string::npos )
cout << "";
string::size_type idx_y;
idx = a.find(z);
if (idx_y == string::npos )
cout << "";
string::size_type idx_z;
idx = a.find(a_1);
if (idx_z == string::npos )
cout << "";
string::size_type idx_a_1;
idx = a.find(b_1);
if (idx_a_1 == string::npos )
cout << "";
string::size_type idx_b_1;
idx = a.find(c_1);
if (idx_b_1 == string::npos )
cout << "";
string::size_type idx_c_1;
idx = a.find(d_1);
if (idx_c_1 == string::npos )
cout << "";
string::size_type idx_d_1;
idx = a.find(e_1);
if (idx_d_1 == string::npos )
cout << "";
string::size_type idx_e_1;
idx = a.find(f_1);
if (idx_e_1 == string::npos )
cout << "";
string::size_type idx_f_1;
idx = a.find(g_1);
if (idx_f_1 == string::npos )
cout << "";
string::size_type idx_g_1;
idx = a.find(h_1);
if (idx_g_1 == string::npos )
cout << "";
string::size_type idx_h_1;
idx = a.find(i_1);
if (idx_h_1 == string::npos )
cout << "";
string::size_type idx_i_1;
idx = a.find(j_1);
if (idx_i_1 == string::npos )
cout << "";
string::size_type idx_j_1;
idx = a.find(k_1);
if (idx_j_1 == string::npos )
cout << "";
string::size_type idx_k_1;
idx = a.find(l_1);
if (idx_k_1 == string::npos )
cout << "";
string::size_type idx_l_1;
idx = a.find(m_1);
if (idx_l_1 == string::npos )
cout << "";
string::size_type idx_m_1;
idx = a.find(n_1);
if (idx_m_1 == string::npos )
cout << "";
string::size_type idx_n_1;
idx = a.find(o_1);
if (idx_n_1 == string::npos )
cout << "";
string::size_type idx_o_1;
idx = a.find(p_1);
if (idx_o_1 == string::npos )
cout << "";
string::size_type idx_p_1;
idx = a.find(q_1);
if (idx_p_1 == string::npos )
cout << "";
string::size_type idx_q_1;
idx = a.find(r_1);
if (idx_q_1 == string::npos )
cout << "";
string::size_type idx_r_1;
idx = a.find(s_1);
if (idx_r_1 == string::npos )
cout << "";
string::size_type idx_s_1;
idx = a.find(t_1);
if (idx_s_1 == string::npos )
cout << "";
string::size_type idx_t_1;
idx = a.find(u_1);
if (idx_t_1 == string::npos )
cout << "";
string::size_type idx_u_1;
idx = a.find(v_1);
if (idx_u_1 == string::npos )
cout << "";
string::size_type idx_v_1;
idx = a.find(w_1);
if (idx_v_1 == string::npos )
cout << "";
else printf("不存在\n");
if (a >= "a" && a <= "z")
a[0] -= 32;
if (a[0] == 'z')a[0] = 'Z';
cout << a << endl;
}
}