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 <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main(){
//freopen("input.txt", "r", stdin);
string input;
int n; scanf("%d", &n);getchar();
while( !cin.eof()){
cin >> input;
int len=input.size()-1;
for(int i=0; i<len; i+=2){
int a=input[i]-97;
int b=input[i+1]-97;
int c=(a+b+26-n)%26;
printf("%c",c+'a');
}
printf(" ");
}
printf("\n");
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |