Submission #9390

#TimeUsernameProblemLanguageResultExecution timeMemory
9390shashackVeni, vidi, vici (kriii2_V)C++14
0 / 4
0 ms1672 KiB
#include <iostream> #include <stdio.h> #include <string> using namespace std; int main(){ //freopen("input.txt", "r", stdin); string input; int n; cin>>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; cout<<(char)(c+'a'); //printf("%c",c+'a'); } cout<<" "; } cout<<endl; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...