
HDOJ
Yuzzzzzz
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
HDU1551
n跳绳分成k段,问最长的分法 #include<cstdio> #include<iostream> #include<algorithm> #define eps 1e-7 #include<cmath> using namespace std; int n,m; double arr[100010]; bool jg(double x) { ...原创 2019-03-20 14:49:24 · 407 阅读 · 0 评论 -
HDU2141
给出三组数a b c,S次询问x,如果在a b c中各找出一个数使其和为x,则输出yes,否则输出no #include<cstdio> #include<iostream> #include<cstring> #include<algorithm> using namespace std; int a[510],b[510],c[510],ab...原创 2019-03-20 18:44:59 · 205 阅读 · 0 评论 -
HDU2289
题意:那么好理解的题就不用写了吧 #include<cstdio> #include<iostream> #include<algorithm> #include<cstring> #include<cmath> #define eps 1e-7 using namespace std; int n; double c; doub...原创 2019-03-20 21:21:45 · 342 阅读 · 0 评论 -
HDU2298
题意:圆台,给出上底半径和下底半径,高和里面的水的体积,求水的高度,下底比上底小。 圆台体积 任意给出水高h可求水面半径r1 = h/H*(R-r)+r; H是 圆台高度,r是下底半径,R是上底半径。 二分水高,注意精度。 #include<cstdio> #include<algorithm> #include<iostream> #includ...原创 2019-03-20 22:17:26 · 362 阅读 · 0 评论 -
HDU3743
求逆序对 先上归并的代码,吃点补线段树和树状数组的 因为不知道要多组输入wa了好几次 #include<cstdio> #include<iostream> #include<algorithm> #define ll long long using namespace std; const int N = 1e6+10; int arr[N],a[N...原创 2019-03-20 22:45:06 · 227 阅读 · 0 评论 -
HDOJ3966 树链剖分
#include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int maxn = 5e4+10; struct Edge { int to,nxt; }e[maxn<<1]; int head[maxn],tot; int top[m...原创 2019-05-08 15:25:22 · 186 阅读 · 0 评论