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






Object_S

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | | 管理

2021年12月17日

AtCoder Beginner Contest 222 D - Between Two Arrays
摘要: 题意 题解 公理1:此题支持O(N2)。 公理2:对于每个合法序列,其值单调不减。 灵感1(公理1):是否可以DP? 性质1(公理2):在一个序列不断"递增"的过程中,其能够选择的最小值单调不降。 公理3:方案数具有累加性,不具有后效性。 答案1(灵感1、公理3):可以保存下所有状态,状态设计为dp 阅读全文
posted @ 2021-12-17 16:11 Object_S 阅读(69) 评论(0) 推荐(0)
 
AtCoder Beginner Contest 225 D - Play Train
摘要: 题意 题解 手动做链表模拟 #include<cstdio> #include<iostream> #include<vector> using namespace std; const int MAXN = 2e5; struct Car { int front, back; }tr[MAXN]; 阅读全文
posted @ 2021-12-17 11:02 Object_S 阅读(37) 评论(0) 推荐(0)