为啥会超时啊?
查看原帖
为啥会超时啊?
597558
talent5978楼主2021/11/4 11:42
#include<stdio.h>
#include<iostream>
using namespace std;

int main()
{
    string c;
    int n,j;
    cin>>n>>c;
    for(j=0;j<c.size();j++)
    {
        while(n--)
        {
            c[j]++;
            if(c[j]>'z')c[j]='a';
        }
    }
    cout<<c;
    return 0;
}
2021/11/4 11:42
加载中...