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>
#include<string.h>
int main(void)
{
char string[20000];
int n;
int length;
scanf("%d\n", &n);
gets(string);
length = strlen(string);
for (int i = 0; i < length; i+=2)
{
if (string[i] == ' ' || string[i + 1] == ' ')
{
printf(" ");
if (string[i] == ' ')
i = i - 1;
continue;
}
printf("%c", 'a' + ((string[i] - 'a' + string[i + 1] - 'a'-n)%26));
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |