#12564: 黑魔法


puyu (千花撩亂)


把所有冷門的函式拿來亂用

結果連負數都能轉(2補數)

真是太可怕了

 

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

int main()
{
 int i;
 while(scanf("%d",&i) == 1){
    bitset<sizeof(int)<<3> b(i);
    printf("%s\n",b.to_string().c_str() + __builtin_clz(i));
 }
 return 0;
}