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>
char s[200];
int main ()
{
int n;
scanf ("%d", &n);
while (scanf ("%s", &s)==1) {
for (int i=0; s[i]; i+=2) {
if (s[i+1]==0) break;
printf ("%c", ((s[i]-'a' + s[i+1]-'a' - n + 26) % 26) + 'a');
}
printf (" ");
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |