1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #include<iostream> #include<algorithm> #include<bitset> #include <climits> using namespace std; int main() { int a = 585; bitset<CHAR_BIT> n; n=bitset<CHAR_BIT>(a); cout<<n<<" "; return 0; } |
ICAgICNpbmNsdWRlPGlvc3RyZWFtPgogICAgI2luY2x1ZGU8YWxnb3JpdGhtPgogICAgI2luY2x1ZGU8Yml0c2V0PgojaW5jbHVkZSA8Y2xpbWl0cz4KICAgIHVzaW5nIG5hbWVzcGFjZSBzdGQ7CiAgICBpbnQgbWFpbigpCiAgICB7CiAgICAgICAgaW50IGEgPSA1ODU7CiAgICAgICAgYml0c2V0PENIQVJfQklUPiBuOwogICAgICAgIG49Yml0c2V0PENIQVJfQklUPihhKTsKICAgICAgICBjb3V0PDxuPDwiICI7CiAgICAgICAgICAgIHJldHVybiAwOwogICB9Cg==
-
upload with new input
-
result: Success time: 0s memory: 2856 kB returned value: 0
01001001


