William123zcr @ 2023-01-23 21:31:36
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
void test01()
{
int i = 0, dis = 0;
char str[51];
scanf("%d", &dis);
scanf("%s", str);
for (i = 0; str[i] != '\0'; i++)
{
int temp = str[i] + dis;
while (temp > 122)
temp -= 26;
str[i] = temp;
putchar(str[i]);
}
}
int main()
{
test01();
return 0;
}
by ud2_ @ 2023-01-23 21:46:16
提交的结果是 Accepted,代码也确实没错。
by markding @ 2023-01-23 21:57:44
您的问题是?
by chenmingwang @ 2023-06-24 19:09:31
和我的uid一样,考古考古