最难的问题

复制代码
复制代码
 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 @   ouyang_wsgwz  阅读(133)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
展开