会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
一一工作驿站
博客园
首页
新随笔
联系
订阅
管理
2016年5月6日
LeetCode : 231. Power of Two
摘要: 题目很简单,但实现上有个新的有趣的东西: std::bitset是STL的一部分,std::bitset是一个模板类,有了它我们可以像使用数组一样使用位。 #include<bitset> std::bitset<8> bs; bs[0]=1; bs[3]=true; bs[7]=0; bitset
阅读全文
posted @ 2016-05-06 16:54 盛小胖
阅读(181)
评论(0)
推荐(0)
公告