/*#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;
}

 

posted on 2023-06-18 08:11  爱吃泡面的皮卡  阅读(5)  评论(0编辑  收藏  举报