4 人解决,15 人已尝试。
6 份提交通过,共有 54 份提交。
8.9 EMB 奖励。
单点时限: 2.0 sec
内存限制: 256 MB
Having a sequence of
If more than one sequence satisfying this condition exists, lexicographically minimal one should be found.
The input file consists of several data sets. In the first line of each set the sequence length
For each data set you need to print result sequence in separate line. Integers in the sequence must be separated by single spaces. Print No solution
if requested sequence does not exist.
2 1 2 6 1 2 3 4 5 6 6 1 1 2 2 3 3 0
2 1 1 3 2 4 6 5 1 1 3 3 2 2
4 人解决,15 人已尝试。
6 份提交通过,共有 54 份提交。
8.9 EMB 奖励。