public String justify(String[] w, int x, int y, int cnt, int L) {
		int n = w.length;
		String res = "";
		if (x == y || y == n - 1) { // left justify銆備袱涓潯浠讹細鍙湁涓�釜鍗曡瘝锛屾垨鑰呮渶鍚庝竴琛屻�
			res = w[x];
			for (int i = x + 1; i <= y; i++) {
				res += " " + w[i];
			}
			while (res.length() < L)
				res += " ";
			return res;
		}
		int gap = L - cnt;
		for (int i = y; i > x; i--) {
			int tmp = gap / (i - x); // 鑻ユ棤娉曞钩鍒嗗垯宸﹁竟姣斿彸杈瑰绌烘牸
			gap -= tmp;
			String tmpRes = " ";
			while (tmp > 0) {
				tmpRes += " ";
				tmp--;
			}
			tmpRes += w[i];
			res = tmpRes + res;
		}
		res = w[x] + res;
		return res;
	}