static int kyori(List<Integer> list, int cur, int first) {
		int ans = getKyori(cur, list.get(first));
		cur = list.remove(first);
		while (list.isEmpty() == false) {
			int minKyori = 101;
			int minIndex = -1;
			for (int i = 0; i < list.size(); i++) {
				int kyori = getKyori(cur, list.get(i));
				if (minKyori > kyori) {
					minKyori = kyori;
					minIndex = i;
				}
			}
			ans += minKyori;
			cur = list.remove(minIndex);
		}
		return ans;
	}