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






Object_S

 
 

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

2021年10月19日

Codeforces Round #747 (Div. 2) A. Consecutive Sum Riddle
摘要: 场上思路 将数列视为公差为1的等差数列,二分+等差数列通项公式。 改进 注意到最终只需要凑出n,且l和r与n的范围相同,考虑到n=-(n-1)-(n-2)-...+0+1+...+(n-1)+n,那么l和r就可以O(1)求出。 做题 #include<cstdio> #include<iostrea 阅读全文
posted @ 2021-10-19 21:35 Object_S 阅读(51) 评论(0) 推荐(0)
 
poj 1458 最长公共子序列
摘要: 题目链接 #include<cstdio> #include<iostream> #include<cstring> using namespace std; char s1[200],s2[200]; int dp[300][300]; int main(){ while(~scanf("%s%s 阅读全文
posted @ 2021-10-19 14:41 Object_S 阅读(20) 评论(0) 推荐(0)
 
T206418 【模板】最长上升子序列 标程
摘要: 题目链接:https://www.luogu.com.cn/problem/T206418 #include<cstdio> #include<iostream> #include<algorithm> using namespace std; const int MAXN=200000*25; i 阅读全文
posted @ 2021-10-19 12:50 Object_S 阅读(795) 评论(0) 推荐(0)