poj2538

来源:互联网 发布:淘宝网正品手提包女 编辑:程序博客网 时间:2024/06/06 01:25
#include
#include
using namespace std;
int main(){
charc[10000]={'`','1','2','3','4','5','6','7','8','9','0','-',
           '=','Q','W','E','R','T','Y','U','I','O','P','[',
 ']','\\','A','S','D','F','G','H','J','K','L',';',
 '\'','Z','X','C','V','B','N','M',',','.','/'},str[1000];
int a[10000]={0};
for(int i=0;i
   while(gets(str)!=NULL){
    for(int i=0;i
    if(str[i]==' ') cout<<str[i];
     elsecout<<c[a[str[i]]-1];
    cout<<endl;
    }
    return 0;
}
0 0
原创粉丝点击