解密

#include <bits/stdc++.h>
using namespace std;

int main(int argc, char** argv) {
    string a="11010512010597110103989711010311510411710897111989711011611111712211111710910110511910110510997111989711110997";
    while (a.size()>1){
    string w=a.substr(0,2);
    int s=stoi(w);
    char d;
        if(s>=65&&s<=122){
            
             d=s;
            a=a.substr(2);
        }else{
            w=a.substr(0,3);
            s=stoi(w); d=s;
                         a=a.substr(3);
        
        }
            cout<<d;
    }
    return 0;
}

 

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