#include<iostream> using namespace std; int main(){ int i,c; char a[] = {"`1234567890-=qwertyuiop[]\\asdfghjkl;'zxcvbnm,./'"}; while(c=getchar()){ for(i=1;a[i]&&a[i]!=c;i++); if(a[i])putchar(a[i-1]); else putchar(c); } return 0; }
2022-05-17 03:12:33
#include<iostream> using namespace std; int main(){ int i,c; char a[] = {"`1234567890-=qwertyuiop[]\\asdfghjkl;'zxcvbnm,./'"}; while(c=getchar()){ for(i=1;a[i]&&a[i]!=c;i++); if(a[i])putchar(a[i-1]); else putchar(c); } return 0; }