Java
public static void main(String[] args) {
try(Scanner scanner = new Scanner(System.in)){
int len = scanner.nextInt();
if(len <=0){
return;
}
int[] arr = new int[len];
for(int i =0;i< len;++i){
int item = scanner.nextInt();
if(len %2 == 1 && i ==len-1){
&nbs...
登录后发布评论
暂无评论,来抢沙发