利用几何关系转化以后,变成经典的区间覆盖问题 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int maxn = 10010; const double eps = 1e-11; int n, L, ...
分类:
其他好文 时间:
2021-06-03 17:39:32
阅读次数:
0
#include <bits/stdc++.h> #define please return #define ac 0 using namespace std; using ll = long long ; bool vis[1003]; void solve() { int n,m; cin>>n ...
分类:
编程语言 时间:
2021-06-02 18:28:48
阅读次数:
0
###一、ISA结构 struct objc_object { private: isa_t isa; }; union isa_t { Class cls; uintptr_t bits; #if defined(ISA_BITFIELD) // ISA_BITFIELD意为 isa位域 stru ...
分类:
其他好文 时间:
2021-06-02 18:18:32
阅读次数:
0
redis的List存储结构:一个链表加上压缩列表实现的 redis c语言源码双向循环列表# define QL_FILL_BITS 16# define QL_COMP_BITS 16# define QL_BM_BITS 4 /typedef struct quicklist { quickl ...
分类:
其他好文 时间:
2021-06-02 18:11:23
阅读次数:
0
#include<bits/stdc++.h> using namespace std; const int N = 200000,Inf=0x7fffff; struct edge{ int u,v,w; edge(int a,int b,int c){ u=a,v=b,w=c; } }; vec ...
分类:
其他好文 时间:
2021-06-02 17:40:23
阅读次数:
0
dd爱框框 一道思维题,画过转换图之后会发现最多会出现四种矩阵,那么只需要判断最后是哪一种就好了。 同时对于连续的直接去重,因为两个连续相同的等于不操作。 #include <bits/stdc++.h> using namespace std; const int N = 1010; int a[ ...
分类:
其他好文 时间:
2021-06-02 16:40:21
阅读次数:
0
#include<bits/stdc++.h> #define ull unsigned long long using namespace std; const int N=1000011; const ull St=233,M1=1000000007,M2=1000000009; int n,m ...
分类:
其他好文 时间:
2021-06-02 16:00:05
阅读次数:
0
##题目: (注:T1) ##想法 这道题是一个方案背包的类似板子的题,但是我并没有第一遍切,为什么呢?因为我在一个循环里把num[]数组写成了a[]数组,结果样例太水了被我过了,后来发现才9分,回头检查才发现数组写错了。太智障了,下次要认真点 ##代码: #include<bits/stdc++. ...
分类:
其他好文 时间:
2021-06-02 13:32:00
阅读次数:
0
原题链接 题意:每次加一个数,要求最小 $\sum max_ - min_, 题解:本来以为就是纯贪心,然后发现竟然是区间dp,就是先排完序,然后就加入然后取 \(min\)。 代码: #include <iostream> #include <bits/stdc++.h> using namesp ...
分类:
其他好文 时间:
2021-06-02 13:04:14
阅读次数:
0
这题很妙。 多去完成这种级别的题目,建模能力才会真正得到提高。 题解干完springboot活补。 #include<bits/stdc++.h> using namespace std; inline int read() { int x=0,f=1;char c=getchar(); while ...
分类:
其他好文 时间:
2021-06-02 12:02:18
阅读次数:
0