I try to solve it, but always got wrong answer.
Maybe I haven't understood the problem clearly.
In the problem, there is
the king should do one of these statements: either it is a frontier province or it is an already conquered province.
What does this sentence actually mean?
And,will "-1" be printed out?(as far as I can see, there should
be no case to print -1).