CodeFoeces-474A

题目

原题链接:A. Keyboard

题意

Mole输入了一串字符,但可能按成了本来按键的左边或右边的键,问原本的字串。

代码

#include
using namespace std;
int main() {
    char s[]="qwertyuiopasdfghjkl;zxcvbnm,./",n,m[101];
    scanf("%c\n%s",&n,&m);
    if(n=='L'){
        for(int i=0;i

你可能感兴趣的:(CodeFoeces-474A)