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 <cstdio>
#include <cstring>
int main(){
int n;
scanf("%d",&n);
n = 26 - n;
char str[105] = {};
while(~scanf("%s",str)){
for(int j=0; str[j+1]; j+=2){
int p = 1 * str[j] + 1 *str[j+1] + n - 'a' - 'a';
p %= 26;
putchar(p + 'a');
}
putchar(' ');
memset(str,0,sizeof(str));
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |