摘要:
Sliding Window 链接:http://poj.org/problem?id=2823 Time Limit: 12000MS Memory Limit: 65536K Case Time Limit: 5000MS Description An array of size n ≤ 106 阅读全文
摘要:
#include using namespace std; const int maxn = 100000+5; int heap[maxn],_size; void put(int k){ heap[++_size]=k; int now=_size; while(now>1){ int nxt = now >> 1; if(heap[... 阅读全文