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

02 2022 档案

 
021-2022-INES A. Armor and Weapons Solution(玄学剪枝,限界)
摘要:LINK #include<bits/stdc++.h> #include <unordered_set> #define int long long using namespace std; typedef pair<int, int> PII; typedef pair<PII, int> PI 阅读全文
posted @ 2022-02-26 09:45 _Codjjj 阅读(52) 评论(0) 推荐(0)
CF600E Lomsat gelral(树上启发式合并)
摘要:LINK Code: #include <iostream> #include <cstring> #include <algorithm> #define int long long typedef long long LL; using namespace std; const int N = 阅读全文
posted @ 2022-02-25 09:49 _Codjjj 阅读(43) 评论(1) 推荐(0)
序列哈希+集合划分
摘要:Link #include <iostream> #include <cstring> #include <algorithm> #include <cmath> #include <vector> #define int long long #define x first #define y se 阅读全文
posted @ 2022-02-23 23:17 _Codjjj 阅读(80) 评论(0) 推荐(0)
高斯消元板子题
摘要:Problem Link #include <bits/stdc++.h> using namespace std; const int N = 15; double b[N][N],a[N][N]; int n; void guass(){ for(int r=1,c=1;c<=n;c++,r++ 阅读全文
posted @ 2022-02-21 22:22 _Codjjj 阅读(40) 评论(0) 推荐(0)
CF847D Dog Show
摘要:重要的技巧,从原点向右每秒一格,可以把a[i]-i看作新的距离 单调向右可以用优先队列/单调队列优化,此时pq维护的是以i为T秒结束后的人停留在的位置 做法能成立的原因是wait单调递减(时间上界不断减少,所以已经被删的不会再被加进队列里来,并且a[i]-i这个数组没有单调性,所以只能用优先队列,复 阅读全文
posted @ 2022-02-19 09:02 _Codjjj 阅读(46) 评论(0) 推荐(0)
CF883A.Automatic Door Solution
摘要:CF883A.Automatic Door Solution Link 首先,我们做出如下约定: 将整个时间以客人的时间分隔成n段,分别是 \[ (a[i-1],a[i]] \] ,其中第一段是(0,a[1]),最后一段是 \[ (a[i],max(a[i],n*a)) \] 由于每一组中的有雇员, 阅读全文
posted @ 2022-02-15 16:41 _Codjjj 阅读(67) 评论(0) 推荐(0)
最幸运的数字(欧拉定理,欧拉函数)
摘要:link Code: #include <iostream> #include <cstring> #include <algorithm> using namespace std; #define int long long const int N = 1e5 + 10, M = 1e5; int 阅读全文
posted @ 2022-02-07 19:22 _Codjjj 阅读(99) 评论(0) 推荐(0)
 

公告


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