解密

#include <bits/stdc++.h>
using namespace std;
int main(int argc, char** argv) {
    string a="11010512010597110103989711010311510411710897111989711011611111712211111710910110511910110510997111989711110997";
    while(a.size()>1){
        string s=a.substr(0,2);
        int m=stoi(s);
        char f;
        if(m>=65 && m<=122){
            f=m;
            a=a.substr(2);
        }else{
            s=a.substr(0,3);
            m=stoi(s);
            f=m;
            a=a.substr(3);
        }
        cout<<f;
        }
    return 0;
}

 

posted @ 2023-06-16 20:02  fushuxuan1  阅读(11)  评论(0)    收藏  举报