public static boolean consecutivePositiveSum(int[]A, int t) {
		for (int l=0, r=0, n=A.length, sum=0; r<n;++r) {
			sum+=A[r];
			if (sum==t) return true;
			else if (sum >t)
				while (sum>t) sum-=A[l++];
		}
		return false;
	}