04 2018 档案
摘要:Hihocoder 1077题意 中文题。解题思路 线段树裸题。代码#includeusing namespace std;const int maxn = 1000005;int tree[maxn>1; biuld(l,m,rt>...
阅读全文
摘要:原文地址:http://blog.csdn.net/zearot/article/details/48299459
阅读全文
摘要:1174 区间中最大的数基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题例如: 1 7 6 3 1。i = 1, j = 3,对应的数为7 6 3,最大的数为7。(该问题也被称为RMQ问题)Input第1行:1个数N,表示序...
阅读全文
摘要:POJ 2255 Tree Recovery模板题#include#include#includeusing namespace std;#define maxn 50char str1[maxn],str2[maxn];int getm(char c...
阅读全文

浙公网安备 33010602011771号