会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
鼬镰
求是、立德、尚学、精业!
博客园
首页
新随笔
联系
订阅
管理
2019年9月5日
洛谷 p1010 幂次方
摘要: #include <cstdio> #include <cmath> using namespace std; void dg(int n) { int a; if(n==0) return; for(int i=0;i<=15;i++) //求出n以内2最大的a次方 { a=i; if(pow(2,a)>n) { a--; break; } } if(a==0) printf("2(0)");
阅读全文
posted @ 2019-09-05 21:17 痞卡皮
阅读(260)
评论(0)
推荐(0)
编辑
公告