文章

81

粉丝

2

获赞

424

访问

7.9k

头像
进制转换2 题解:
P1259 北京大学机试题
发布于2026年3月15日 14:01
阅读数 63

#include <iostream>
using namespace std;

int main() {
    long long x;
    while (cin >> hex >> x)
        cout << dec << x << endl;
}
#include <cstdio>

int main(){
    unsigned long long x;

    while(scanf("%llx",&x)!=EOF){
        printf("%llu\n",x);
    }

    return 0;
}

 

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发