摘要:
判断一个数是不是素数:bool prime(int n){ if(n==0||n==1) return false; if(n==2) return true; for(int i=2;i#include #include const int maxn = 1000001;int ... 阅读全文
posted @ 2015-03-12 22:51
scott_ding
阅读(174)
评论(0)
推荐(0)
摘要:
__builtin_ffs(x) 返回右起第一个‘1’的位置。__builtin_clz(x) 返回左起第一个‘1’之前0的个数。__builtin_ctz(x) 返回右起第一个‘1’之后的0的个数。__builtin_popcount(x... 阅读全文
posted @ 2015-03-12 21:17
scott_ding
阅读(179)
评论(0)
推荐(0)

浙公网安备 33010602011771号