for zhaoyihao233

P1914 小书童——凯撒密码

Christopher_Yan @ 2016-10-21 14:44:50

#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
    char a[10001];
    int b,len;
    cin>>b;
    cin>>a;
    len=strlen(a); 
    for(int i=0;i<len;i++)
    {
        if(a[i]>'z') a[i]-='a';
        a[i]++;
    }
    puts(a);
    return 0;
}

by hnyqwq @ 2019-02-08 11:25:01


by hnyqwq @ 2019-02-08 11:25:06

考古


|