Input format
The first line: n, the second line: a string of letters before moving
The output format
A line, is the password of the konjac
#include
#include
Char cha (char a, int n)
{
If (a<=122 & amp; & a> 122 - n % 26)
Return a + n % 26-26;
The else
Return a + n % 26;
}
Int main ()
{
Char cha (char a, int n);
Int n, b;
Char ch [1000], x;
The scanf (" % d \ n ", & amp; n);
Ch [n]='\ 0';
For (int I=0;; I++)
{
The scanf (" % c ", & amp; Ch [I]);
If (ch [I]=='\ n')
break;
X=cha (ch [I], n);
Printf (" % c ", x);
}
return 0;
}