Title
摘要: CF 1095C Powers Of Two(二进制拆分) A positive integer xx is called a power of two if it can be represented as x=2y, where y is a non-negative integer. So, 阅读全文
posted @ 2021-06-14 11:21 BeautifulWater 阅读(87) 评论(0) 推荐(0) 编辑
摘要: #小技巧——二进制转换 二进制转换一——递归 #include<iostream> using namespace std; int cnt=0; void ten_2_bi(int k,int a[]) { if(k!=0) { ten_2_bi(k>>1,a); a[cnt++]=k%2; co 阅读全文
posted @ 2021-06-14 10:25 BeautifulWater 阅读(91) 评论(0) 推荐(0) 编辑