为什么80?

P1914 小书童——凯撒密码

a___ @ 2017-01-22 14:07:20

#include<cstdio>
using namespace std;
int main()
{
    int n;
    char a[999999];
    scanf ("%d%s",&n,a);
    for (int i=0;a[i]!='\0';i++)
    {
        a[i]+=n%26;
        putchar (a[i]);
    }
    return 0;
}

by svc330 @ 2017-01-22 14:43:30

'z'+1%26=??


by a___ @ 2017-01-22 15:17:23

哦,谢谢


|