• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Andromeda_Galaxy
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

2018年8月22日

stack 的一些用法
摘要: #include using namespace std; int32_t main() { stack st; st.push(1); st.push(2); st.push(3); cout<<st.size()<<endl; while(!st.empty()) { cout<<st.top()<<endl; ... 阅读全文
posted @ 2018-08-22 14:40 Andromeda_Galaxy 阅读(210) 评论(0) 推荐(0)
 
斐波那契数列的生成 %1e8 后的结果
摘要: 方法一 用数组开,一般开到1e7,1e8 左右的数组就是极限了 对时间也是挑战 方法二 求第多少个斐波那契数 时间还是个问题 方法三 通项公式 a[n]=1/sqrt(5) ( ((1+sqrt(5))/2 )^n-((1-sqrt(5))/2)^n ); 这不是重点 重要的是 矩阵 求斐波那契数列 阅读全文
posted @ 2018-08-22 12:26 Andromeda_Galaxy 阅读(415) 评论(0) 推荐(0)
 
heap 的一些用法
摘要: noip 合并果子 好的代码 阅读全文
posted @ 2018-08-22 12:06 Andromeda_Galaxy 阅读(397) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3