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