#include<iostream>
using namespace std;
//使用常量数组打表
char s[] = "`1234567890-=QWERTYUIOP[]\\ASDFGHJKL;'ZXCVBNM,./";
int main(void)
{
int i;
char c;
while ((c = getchar()) != EOF)
{
//查表输出
for (i = 1; s[i] != c&&s[i]; ++i);
if (s[i])putchar(s[i - 1]);
else putchar(c);
}
return 0;
}
UVa 10082(WERTYU)
最新推荐文章于 2022-04-24 17:11:11 发布