摘要: #位运算的基本操作 ##1.求n的二进制表示中第k位是几 (1)先把第k位移到最后一位 n >> k; (2)看个位是几 n & 1; #include <bits/stdc++.h> using namespace std; int main(){ int n = 10; for(int k = 阅读全文
posted @ 2022-11-30 13:51 csai_H 阅读(39) 评论(0) 推荐(0)