最难的问题

 1 #include <iostream>
 2 #include <algorithm>
 3 #include <string>
 4 using namespace std;
 5 
 6 string a = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
 7 string b = "VWXYZABCDEFGHIJKLMNOPQRSTU";
 8 
 9 int main(){
10 
11     string s;
12     while (getline(cin, s)){
13         for (char x : s){
14             if (x == ' ')
15                 cout << " ";
16             else
17                 cout << b[x - 'A'];
18         }
19         cout << endl;
20     }
21 
22     //system("pause");
23     return 0;
24 }

 

posted @ 2018-03-06 21:21  ouyang_wsgwz  阅读(133)  评论(0编辑  收藏  举报