文章

285

粉丝

20

获赞

862

访问

162.3k

头像
进制转换2 题解:
P1259 北京大学机试题
发布于2026年3月29日 16:36
阅读数 50

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

int main(){
    string s;
    string rel;
    while(cin>>s){
        int q=stoi(s,nullptr,0);
        rel=to_string(q);
        cout<<rel<<endl;
    }
    return 0;
}

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发