摘要:
Descriptoon We have a grid of H rows and W columns. Initially, there is a stone in the top left cell. Shik is trying to move the stone to the bottom r 阅读全文
摘要:
Description You are given a permutation p of the set ${1,2,...,N}$. Please construct two sequences of positive integers $a_1, a_2, ..., a_N$ and $b_1, 阅读全文
摘要:
Description 古子城街上有很多房子,它们从左到右依次为$1$到$n$,每两个相邻房屋之间的距离等于$1$个单位,每幢房子的颜色依次为$c1,c2,...,cn$,即第$i$幢房屋的颜色为$ci$。 冬冬想要选择两幢房子$i$和$j$,使得$1≤i define mem(a,b) memse 阅读全文