大佬们,这道题本地运行全对,提交却全错,求帮助TAT
查看原帖
大佬们,这道题本地运行全对,提交却全错,求帮助TAT
440766
zttengwang楼主2021/4/6 18:10
    #include <cstdio>
    #include <string.h>
    #include <iostream>
    #include <algorithm>
    #include <math.h>
    #include <vector>
    using namespace std;

    int main()
    {
        int n;
        cin>>n;
        getchar();
        char s;
        while(1){
            s=getchar();
            if(s == '\n'){
                break;
            }
            s=(s-'a'+n)%26+'a';
            putchar(s);
        }	

        return 0;
    }
2021/4/6 18:10
加载中...