上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页
摘要: Description There is going to be a party to celebrate the 80-th Anniversary of the Ural State University. The University has a hierarchical structure 阅读全文
posted @ 2018-07-31 20:25 l..q 阅读(201) 评论(0) 推荐(0)
摘要: Description 烽火台又称烽燧,是重要的军事防御设施,一般建在险要或交通要道上。一旦有敌情发生,白天燃烧柴草,通过浓烟表达信息;夜晚燃烧干柴,以火光传递军情,在某两座城市之间有 n 个烽火台,每个烽火台发出信号都有一定代价。为了使情报准确地传递,在连续 m 个烽火台中至少要有一个发出信号。请 阅读全文
posted @ 2018-07-31 11:00 l..q 阅读(389) 评论(0) 推荐(0)
摘要: 题目描述 撷来一缕清风飘渺方知今日书信未到窗外三月天霁垂柳新长枝条风中鸟啼犹带欢笑——《清风醉梦》小奇望着青天中的悠悠白云,开始了无限的遐想,在它的视野中,恰好有n朵高度不同的白云排成一排,他想从左到右选出四朵白云a,b,c,d,使得h_a<h_b<h_d<h_c,即看起来像是彩虹的形状!它想知道有 阅读全文
posted @ 2018-07-27 20:19 l..q 阅读(220) 评论(0) 推荐(0)
摘要: 题目描述 作为白玉楼的庭师,妖梦虽然不会n刀流,但是却领悟了生命二刀流。然而我也是个剑的收藏者,家里屯着n把剑,每一把剑都有一个灵魂值a[i],由于一些剑之间可能有共鸣,所以我需要两把契合度最高的剑。据妖梦所说,两把编号为i,j剑的契合度为a[i] and a[j]。如何深得剑的灵魂呢?(即求最大值 阅读全文
posted @ 2018-07-25 09:58 l..q 阅读(244) 评论(0) 推荐(0)
摘要: 题目描述 一种新型的激光炸弹,可以摧毁一个边长为R的正方形内的所有的目标。现在地图上有n(n≤10000)个目标,用整数xi,yi(0≤xi,yi≤5000)表示目标在地图上的位置,每个目标都有一个价值0<vi<100。激光炸弹的投放是通过卫星定位的,但其有一个缺点,就是其爆破范围,即那个边长为R的 阅读全文
posted @ 2018-07-17 14:55 l..q 阅读(223) 评论(0) 推荐(0)
摘要: 题目描述 We have a sequence of length N consisting of non-negative integers. Consider performing the following operation on this sequence until the larges 阅读全文
posted @ 2018-07-08 21:05 l..q 阅读(221) 评论(0) 推荐(0)
摘要: 题目描述 Fennec and Snuke are playing a board game.On the board, there are N cells numbered 1 through N, and N−1 roads, each connecting two cells. Cell ai 阅读全文
posted @ 2018-07-08 19:09 l..q 阅读(259) 评论(0) 推荐(0)
摘要: 题目描述 There are N towns on a plane. The i-th town is located at the coordinates (xi,yi). There may be more than one town at the same coordinates.You ca 阅读全文
posted @ 2018-07-08 18:51 l..q 阅读(240) 评论(0) 推荐(0)
摘要: 题目描述 给定一张 n(n≤20) 个点的带权无向图,点从 0~n-1 标号,求起点 0 到终点 n-1 的最短Hamilton路径。 Hamilton路径的定义是从 0 到 n-1 不重不漏地经过每个点恰好一次。 输入 第一行一个整数n。接下来n行每行n个整数,其中第i行第j个整数表示点i到j的距 阅读全文
posted @ 2018-07-04 20:51 l..q 阅读(1309) 评论(1) 推荐(0)
摘要: 题目描述 You are given an integer sequence of length N, a= {a1,a2,…,aN}, and an integer K.a has N(N+1)⁄2 non-empty contiguous subsequences, {al,al+1,…,ar} 阅读全文
posted @ 2018-06-26 11:37 l..q 阅读(309) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页