11 2016 档案
摘要:Description There are some water, milk and wine in your kitchen. Your naughty little sister made some strange drinks by mixing them together, and then
阅读全文
摘要:Description 这是一道模板题。 本题中你需要求解一个标准型线性规划: 有$n$个实数变量$x_1,x_2,\cdots,x_n$和$m$条约束,其中第$i$条约束形如$\sum_{j=1}^{n}a_{ij}x_{j} \le b_{i}$。 此外这$n$个变量需要满足非负性限制,即$x_
阅读全文
摘要:Description You have been struck with inspiration, and are designing a beautiful new art sculpture for the foyer of your local museum. For highly impo
阅读全文
摘要:Description 现有一颗含$N$个珠子的项链,每个珠子有$t$种不同的染色。现求在旋转置换下有多少种本质不同的项链,在旋转和翻转置换下有多少种本质不同的项链。$N The input file contains several lines of input. Each line contai
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:Description Once upon a time Petya and Gena gathered after another programming competition and decided to play some game. As they consider most modern
阅读全文