摘要:
链接: https://vjudge.net/problem/POJ 3436 author=0 题意: 为了追求ACM比赛的公平性,所有用作ACM比赛的电脑性能是一样的,而ACM董事会专门有一条生产线来生产这样的电脑,随着比赛规模的越来越大,生产线的生产能力不能满足需要,所以说ACM董事会想要重新 阅读全文
摘要:
链接: https://vjudge.net/contest/308446 problem/C 题意: Chika gives you an integer sequence a1,a2,…,an and m tasks. For each task, you need to answer the 阅读全文
摘要:
链接: https://vjudge.net/problem/SPOJ DQUERY 题意: 找n个数中无修改的区间不同数个数 思路: 莫队算法,第一次写,很奇怪,代码很好写,分块之后来回跳。 代码: c++ include include include include include inclu 阅读全文
摘要:
链接: https://vjudge.net/problem/HDU 6278 题意: The h index of an author is the largest h where he has at least h papers with citations not less than h. B 阅读全文
摘要:
链接: https://vjudge.net/problem/POJ 2104 author=malic 题意: 给定一个数组 a[1...n],数组元素各不相同,你的程序要对每次查询Q(i,j,k)作出回答,其中Q(i,j,k)的含义为在数组a[i...j]中第k大的数字. 例如,给出数组a=(1 阅读全文
摘要:
链接: https://vjudge.net/problem/HDU 6546 题意: wls 有 n 个二次函数 Fi(x) = aix2 + bix + ci (1 ≤ i ≤ n). 现在他想在∑ni=1xi = m 且 x 为正整数的条件下求∑ni=1Fi(xi)的最小值。 请求出这个最小值 阅读全文
摘要:
链接: https://vjudge.net/problem/POJ 1523 author=0 题意: Consider the two networks shown below. Assuming that data moves around these networks only betwee 阅读全文
摘要:
链接: https://vjudge.net/problem/POJ 2762 题意: In order to make their sons brave, Jiajia and Wind take them to a big cave. The cave has n rooms, and one 阅读全文
摘要:
链接: https://vjudge.net/problem/POJ 2553 题意: We will use the following (standard) definitions from graph theory. Let V be a nonempty and finite set, it 阅读全文
摘要:
链接: https://vjudge.net/problem/POJ 1659 题意: 未名湖附近共有N个大小湖泊L1, L2, ..., Ln(其中包括未名湖),每个湖泊Li里住着一只青蛙Fi(1 ≤ i ≤ N)。如果湖泊Li和Lj之间有水路相连,则青蛙Fi和Fj互称为邻居。现在已知每只青蛙的邻 阅读全文