2012年5月22日

poj 3468 A Simple Problem with Integers 数据结构

摘要: 线段树水题写splay练手 1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<cmath> 5 using namespace std; 6 #define MAXN 100000+100 7 struct node 8 { 9 long long sum,father,left,right,adt,cnt,num; 10 }; 11 node tree[MAXN]; 12 int top=0,n,m,root; 13 long long a[MAXN]; 阅读全文

posted @ 2012-05-22 22:29 myoi 阅读(197) 评论(0) 推荐(0) 编辑

导航