• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
井_中窥月
万物美好,我在中央
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 ··· 5 6 7 8 9
2015年4月10日
Football(POJ3071)
摘要: FootballTime Limit:1000MSMemory Limit:65536KTotal Submissions:3469Accepted:1782DescriptionConsider a single-elimination football tournament involving ... 阅读全文
posted @ 2015-04-10 18:11 井_中窥月 阅读(187) 评论(0) 推荐(0)
2015年4月9日
Scout YYF I(POJ 3744)
摘要: Scout YYF ITime Limit:1000MSMemory Limit:65536KTotal Submissions:5565Accepted:1553DescriptionYYF is a couragous scout. Now he is on a dangerous missio... 阅读全文
posted @ 2015-04-09 17:44 井_中窥月 阅读(170) 评论(0) 推荐(0)
2015年4月8日
快速幂(整数 + 矩阵)
摘要: 一、整数m ^ n % k 的快速幂:ll quickpow(ll m, ll n , ll k){ ll ans = 1; while(n){ if(n & 1)//如果n是奇数 ans = (ans * m) % k; n = n... 阅读全文
posted @ 2015-04-08 22:50 井_中窥月 阅读(180) 评论(0) 推荐(0)
递推式转化为矩阵形式
摘要: EXAMPLE: 递推式: d(n + 2) = p * d(n + 1) + (1 - p) * d(n); 令G(n) = (d(n + 2), d(n + 1))^T; 则 G(n + 1) = M * G(n); 解得 M = p 1 - p 1 0 G(n) = (M ^ ... 阅读全文
posted @ 2015-04-08 22:01 井_中窥月 阅读(996) 评论(4) 推荐(0)
2015年4月5日
并查集 POJ 1988
摘要: #include #define N 30010int pa[N]; //parentint siz_tree[N]; //size of treeint d[N]; //dist between node and rootint Find(int x){ if(pa[x] == x) ret... 阅读全文
posted @ 2015-04-05 23:51 井_中窥月 阅读(129) 评论(0) 推荐(0)
2015年3月28日
uva 12657(双向链表)
摘要: 一定要注意swap(x, y),x, y可能相邻!#include #define N 100005#define ll long longint n, m;struct node{ int l, r; node() : l(0), r(0) {} node(int l_, int r_) :... 阅读全文
posted @ 2015-03-28 11:10 井_中窥月 阅读(140) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3