POJ 2481 cows 树状数组
摘要:
题意很简单,需要注意的一点是当两头牛的range完全相同的时候后面的牛的Strongnumber==前面牛的Strongnumber,效率不是很高,2200+ms#include<stdio.h>#include<algorithm>#include<string.h>#include <iostream>using namespace std;typedef struct{ int x; int y; int index;}cow;cow cows[100010];int N;int tree[100010];int ans[100010];b 阅读全文
posted @ 2011-07-23 09:46 lonelycatcher 阅读(347) 评论(0) 推荐(0) 编辑