Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
decode
#include <iostream> #include <string> using namespace std; string str,key="aaaaaaaaaaaaaaaaaaaa"; int main() { while(cin>>str){ for(int i=0; i<str.length(); i++) { str[i]-=key[i]-'a'+1; if(str[i]<'a') str[i]=str[i]+'z'-'a'; } cout << str<<" "; } }
run
|
edit
|
history
|
help
0
UtilityPair2
sorting using array and pointer
diamond
Stream11
typedef
Conjuntos - Contar caracteres únicos
Question 1
ignat2
Einstein's Physics
Addition of two matrix **Part 2