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

2015年5月22日

Gym 100500B Conference Room(最小表示法,哈希)
摘要: #include using namespace std;const int maxn=1005;const int base=37;typedef unsigned long long ULL;setsave;int n;int a[4][maxn],b[maxn];int id[maxn=n?i... 阅读全文
posted @ 2015-05-22 00:21 asdflkj 阅读(276) 评论(0) 推荐(0)
 
CodeForces 438D The Child and Sequence(线段树)
摘要: 题目:http://codeforces.com/problemset/problem/438/D一个数取模n%m,有两种情况、1.m>n, n%m=n;2.mn时,取模操作可以忽略。每个a[i]最多需要log(a[i])次取模操作变为0,因此我们可以对所有取模进行暴力更新。最多要更新n*log(a... 阅读全文
posted @ 2015-05-22 00:14 asdflkj 阅读(277) 评论(0) 推荐(0)
 
 

公告


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