- 博客(133)
- 收藏
- 关注
原创 hdu2199Can you solve this equation?
#include#define f(x) (8*x*x*x*x+7*x*x*x+2*x*x+3*x+6)int main(){// 807020306// printf("%d ",f(100)); int t; double sum; scanf("%d",&t); double l,mid,r; while(t--) {
2014-06-20 13:53:44
582
原创 hdu1233还是畅通工程
水过~~~#include#include#include#define N 109using namespace std;const int inf=1<<31-1;struct node{ int a; int b; int d; bool operator<(const node &r)const { return r.d<d;
2014-06-13 14:35:08
546
原创 hdu1285拓扑排序
#include#include#define N 509int in[N],sortq[N];struct node{ int v; int next;}edg[N];int heap[N],h;void initi(int n){ int i; for(i=0;i<=n;i++) { heap[i]=sortq[i]=-1;
2014-06-12 10:09:18
570
原创 POJ2528Mayor's posters
题目大意:就跟在电线杆上帖小广告一样,先贴的总是会被后帖的给覆盖了,现在要求你求出当最后一张小广告贴上去之后还剩多少没有被完全覆盖。解题思路: 这个思路还是线段树的思路,但是由于数据范围太大了,所以要做离散化处理,要用到的其实就是一些个左端点啊,右端点,以及为了防止漏掉中间断层而添加的中间的点。具体思路看代码:#include#include#include#def
2014-06-05 12:20:07
561
原创 poj3468A Simple Problem with Integers
题目大意:区间更新,区间查找。解题思路:注意数据范围,然后线段树lazy标记就行了,henji
2014-06-04 15:26:47
480
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人