题目:http://poj.org/problem?id=1298
好吧,给了题目也看不懂……给出翻译(题目名翻译是:最难的问题,233333)
这一看就是老师给出题解:
然而没有什么用哈
最快的办法是,把下面的密文直接拷过来,建个字符数组
然后读入,判断是否是 ENDOFINPUT
不是就读入原文,把大写字母翻译出来
记得换行
最后读掉 END
1 #include<cstdio> 2 #include<cstdlib> 3 #include<cstring> 4 #include<cmath> 5 #include<iostream> 6 #include<algorithm> 7 using namespace std; 8 9 const char hs[26]={'V','W','X','Y','Z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U'}; 10 char s[101]; 11 int main() 12 { 13 int i,len; 14 while (1) 15 { 16 gets(s); 17 if (s[0]=='E'&&s[1]=='N'&&s[2]=='D'&&s[3]=='O'&&s[4]=='F'&&s[5]=='I'&&s[6]=='N'&&s[7]=='P'&&s[8]=='U'&&s[9]=='T'&&s[10]=='