Submission #9166

#TimeUsernameProblemLanguageResultExecution timeMemory
9166ainu7Veni, vidi, vici (kriii2_V)C++98
4 / 4
0 ms1672 KiB
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <string>
#include <queue>
#include <map>
#include <algorithm>
#include <cmath>
#include <iostream>
#include <sstream>
#include <set>
using namespace std;

int main()
{
  int n;
  cin >> n;
  string str;
  while (cin >> str) {
    for (int i=0; i+1<str.size(); i+=2) {
      cout << (char)( ((str[i]-'a') + (str[i+1]-'a') - n + 52) % 26 + 'a');
    }
    cout << " ";
  }
  cout << endl;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...