Submission
Status:
-PP------P
Subtask/Task Score:
30/100
Score: 30
User: un8qe_x3
Problemset: แปลงเลขฐาน
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-27 22:19:39
#include<bits/stdc++.h>
using namespace std;
string bin(int a) {string b;while(a){b+=static_cast<char>('0'+a%2);a=a>>1;}return b;}
int main(){int a;cin >> hex >> a;cout << bin(a) << "\n" << oct << a;return 0;}