Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
题目中说任何有效答案都将被判断为正确,我采用将最大值翻到最前面,再翻到最后面的做法,检验也是有效的,次数<= 2 * A.length,但不被接受 如下例(其中输出第一行是为了打印输入, 去掉后还是错的):
与 慕测论坛 的连接断开,我们正在尝试重连,请耐心等待