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 n, i, c, ck;
char p[11000];
int main()
{
scanf("%d", &n);
gets(p);
gets(p);
for (i = 0; p[i]; i++){
if (p[i] == ' '){
c = ck = 0;
printf(" ");
continue;
}
p[i] -= 'a';
if (ck){
printf("%c", (c + p[i] - n + 26) % 26 + 'a');
ck = c = 0;
}
else{
ck = 1, c = p[i];
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |