1 solutions

  • -2
    @ 2026-6-13 10:35:49

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

    int main() { int n; cin>>n; string s; while(n) { int ge=n%2; if(ge<10) s=s+char('0'+ge); else s=s+char('A'+ge-10); n/=2; } cout<<s; return 0; }

    • 1

    Information

    ID
    2853
    Time
    1000ms
    Memory
    64MiB
    Difficulty
    1
    Tags
    # Submissions
    21
    Accepted
    13
    Uploaded By