0
点赞
收藏
分享

微信扫一扫

UVA-10082 WERTYU 题解答案代码 算法竞赛入门经典第二版

源码之路 2023-03-08 阅读 36


#include<iostream>
#include<cstring>
#include<set>
#include<algorithm>
using namespace std;

char s[100] = "`1234567890-=\tQWERTYUIOP[]\\ASDFGHJKL;'ZXCVBNM,./";

int main() {
int c;
char * p;
while((c=getchar()) != EOF)
{
p = strchr(s, c);
if(p == NULL)
putchar(c);
else
putchar(*--p);
}
return 0;
}

 

举报

相关推荐

0 条评论