上一页 1 2 3 4 5 6 7 8 9 ··· 22 下一页
摘要: Description Alan loves to construct the towers of building bricks. His towers consist of many cuboids with square base. All cuboids have the same heig 阅读全文
posted @ 2016-11-13 20:00 lmxyy 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Description Coupons in cereal boxes are numbered $1$ to $n$, and a set of one of each is required for a prize (a cereal box, of course). With one coup 阅读全文
posted @ 2016-11-11 16:50 lmxyy 阅读(174) 评论(0) 推荐(0) 编辑
摘要: Description Once upon a time Petya and Gena gathered after another programming competition and decided to play some game. As they consider most modern 阅读全文
posted @ 2016-11-01 23:08 lmxyy 阅读(226) 评论(0) 推荐(0) 编辑
摘要: Description Given the finite multi set $A$ of $n$ pairs of integers, an another finite multi set $B$ of $m$ triples of integers, we define the product 阅读全文
posted @ 2016-10-14 17:28 lmxyy 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Description Ladies and gentlemen, please sit up straight. Don't tilt your head. I'm serious. For $n$ given strings $S_{1},S_{2},\cdots,S_{n}$, labelle 阅读全文
posted @ 2016-10-14 17:12 lmxyy 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Description Greg has an $m \times n$ grid of Sweet Lightbulbs of Pure Coolness he would like to turn on. Initially, some of the bulbs are on and some 阅读全文
posted @ 2016-10-14 14:18 lmxyy 阅读(419) 评论(0) 推荐(0) 编辑
摘要: Description 给定一棵$N$个结点的树,结点用正整数$1 \dots N$编号,每条边有一个正整数权值。用$d(a, b)$表示从结点$a$到结点$b$路径上经过边的权值和,其中要求$a 第一行包含两个正整数$N,M$。 下面$N − 1$行,每行三个正整数$a, b, c (a, b \ 阅读全文
posted @ 2016-10-14 14:05 lmxyy 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Description Sonya was unable to think of a story for this problem, so here comes the formal description. You are given the array containing $n$ positi 阅读全文
posted @ 2016-09-17 19:07 lmxyy 阅读(228) 评论(0) 推荐(0) 编辑
摘要: Description There are n casinos lined in a row. If Memory plays at casino $i$, he has probability $p_{i}$ to win and move to the casino on the right $ 阅读全文
posted @ 2016-09-15 14:40 lmxyy 阅读(315) 评论(0) 推荐(0) 编辑
摘要: Description Memory is now interested in the de evolution of objects, specifically triangles. He starts with an equilateral triangle of side length $x$ 阅读全文
posted @ 2016-09-14 22:21 lmxyy 阅读(148) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 22 下一页