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<cassert>
#include<cstring>
#include<map>
#include<set>
#include<time.h>
#include<algorithm>
#include<stack>
#include<queue>
#include<utility>
#include<cmath>
#include<iostream>
#include<string>
#include<vector>
using namespace std;
int main() {
int skip;
cin >> skip;
int wc = 0;
string w;
while(cin >> w) {
if(wc++) cout << ' ';
for(int i = 0; i + 1 < w.size(); i += 2) {
char c = (w[i] + w[i+1] - 'a' - 'a' + 26 - skip) % 26 + 'a';
cout << c;
}
}
cout << '\n';
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |