Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
decode
#include <iostream> #include <string> using namespace std; int main() { string str,key="aaaaaaaaaaaaaaaaaaaa"; cin >> str; for(int i=0; i<str.length(); i++) { str[i]-=key[i]-'a'; if(str[i]<'a') str[i]=str[i]+'z'-'a'; } cout << str; }
run
|
edit
|
history
|
help
0
Count of factors
queue
LIS
string iteration performance
Test 13(2020)
HelloWorldExample
project
Best buy/sell day in stock
Merge problem
aaa666