This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<stdio.h>
int key;
char buf[999];
int main()
{
scanf("%d",&key);
while(scanf("%s",buf)>0)
{
int i, j;
for(i=0;buf[i];i++)
{
int p,q;
p = buf[i];
q = buf[i+1];
if(q==0)
break;
int r = (p-'a' + q-'a' + 26*26-key)%26;
printf("%c",r+'a');
i++;
}
printf(" ");
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |