private static int calc(int cards, int[] days) {
		int total = 0;
		int[] tmp = new int[days.length - cards];
		int[] tmp1 = new int[tmp.length + 2];

		tmp1[0] = 0;
		tmp1[tmp.length + 1] = 101;

		for (int i = 1; i <= days.length - cards; i++) {
			System.arraycopy(days, 0, tmp1, 1, i);
			System.arraycopy(days, i + cards - 1, tmp1, i, days.length - i + 1
					- cards);
			if (total < tmp1[0]) {
				total = tmp1[0] - 1;
			}
			for (int j = 1; j < tmp1.length; j++) {
				if (total < (tmp1[j] - tmp1[j - 1] - 1)) {
					total = tmp1[j] - tmp1[j - 1] - 1;
				}
			}
		}
		return total;
	}