Posted on 2008-05-08 09:37
superman 阅读(287)
评论(0) 编辑 收藏 引用 所属分类:
ZOJ
1 /* Accepted 1240 C++ 00:00.00 840K */
2 #include <iostream>
3
4 using namespace std;
5
6 int main()
7 {
8 int n; cin >> n;
9
10 n = 0;
11 string s;
12 while(cin >> s)
13 {
14 n++;
15 cout << "String #" << n << endl;
16 for(int i = 0; i < s.size(); i++)
17 if(s[i] == 'Z')
18 cout << 'A';
19 else
20 cout << char(s[i] + 1);
21 cout << endl << endl;
22 }
23
24 return 0;
25 }
26