Skip to content

Instantly share code, notes, and snippets.

@fullmated
Created November 23, 2011 14:39
Show Gist options
  • Save fullmated/1388830 to your computer and use it in GitHub Desktop.
Save fullmated/1388830 to your computer and use it in GitHub Desktop.
#include<iostream>
#define F )!=string::npos
#define N s.find(
using namespace std;
main(){
string s;
while(getline(cin,s)){
for(int i,j=26;j--;){
if(N"the"F||N"this"F||N"that"F){
cout<<s<<endl;break;
}
for(i=s.size();i--;)
s[i]=s[i]-'z'?96<s[i]?s[i]+1:s[i]:97;
}
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment