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

11 2014 档案

 
noip2012借教室
摘要:答案满足单调性 二分即可以前缀和的形式存储每天需要教室的数量 计算时暴力O(n)算出每天教室的数量这样总复杂度nlognps:自己真是作死居然用cin..AC代码被cin卡到45#include #include #include #include #include #define N 100000... 阅读全文
posted @ 2014-11-05 08:39 SunZY_ 阅读(178) 评论(0) 推荐(0)
乘法逆元
摘要:#include #include #include #include #include using namespace std;typedef long long LL;LL gcd(LL a,LL b){ return b==0?a:gcd(b,a%b);}void kzgcd(LL a,... 阅读全文
posted @ 2014-11-02 14:49 SunZY_ 阅读(159) 评论(0) 推荐(0)
 

公告


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