2012年8月19日

poj2823

摘要: 典型的线段树,很长时间没有写了,好多次都直接用的是模板,这次自己写了下,多多少少还是出了点问题 1 #include <iostream> 2 #include <stdio.h> 3 using namespace std; 4 int a[1000005]; 5 int n,k; 6 struct node 7 { 8 int left ; 9 int right;10 int max;11 int min;12 };13 node tree[1000005*4];14 int MIN[1000005],MAX[1000005];15 16 int Max(... 阅读全文

posted @ 2012-08-19 19:27 矮人狙击手! 阅读(727) 评论(0) 推荐(0) 编辑

导航