/*#include <iostream> using namespace std; int main(int argc, char** argv) { string a; cin>>a; for(int i=0;i<a.size();i++){ char b=a[i]; int c=b; cout<<"第"<<i<<"位:"<<a[i]<<endl; cout<<c<<endl;; } cout<<a<<"加密之后是:"; for(int i=0;i<a.size();i++){ char b=a[i]; int c=b; cout<<c; } return 0; }*/ #include <iostream> using namespace std; int main(int argc, char** argv) { string a="11010512010597110103989711010311510411710897111989711011611111712211111710910110511910110510997111989711110997"; int b; char c; while(a.size()>1){ if(stoi(a.substr(0,2))>=65){ b=stoi(a.substr(0,2)); c=b; cout<<c; a=a.substr(2); }else{ b=stoi(a.substr(0,3)); c=b; cout<<c; a=a.substr(3); } } return 0; }