1 solutions

  • 0
    @ 2024-11-28 16:01:58
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int x;cin>>x;
    	string s;
    	while(x)
    	{
    		if(x&1)s+='1';
    		else s+='0';
    		x>>=1;
    	}
    	cout<<s;
    	return 0;
    }
    
    
    • 1

    Information

    ID
    4070
    Time
    1000ms
    Memory
    64MiB
    Difficulty
    10
    Tags
    # Submissions
    1
    Accepted
    0
    Uploaded By