Submission #9531

#TimeUsernameProblemLanguageResultExecution timeMemory
9531jaehadadVeni, vidi, vici (kriii2_V)C++98
4 / 4
0 ms1672 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...