网易2018校招在线编程题-第二题

package com.neitui.demo2;

import java.util.Arrays;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(); //棋子个数
		int[] x = new int[n]; //横坐标数组`
		int[] y = new int[n]; //纵坐标数组
		//赋值
		for(int i = 0;i

你可能感兴趣的:(algorithm,Practice,Java算法之路)