Watching Video binary search Problem Link #include <iostream> using namespace std; long n, d; long arr[1000001]; bool func(int t) { long long tmp=0; for(int i=1;i<=t;i++) tmp+=arr[i]; t++; while(tmp>=d && t < n+1) { if(tmp <d) return false; tmp -= d; tmp+=arr[t]; t++; } if(t==n+1) ...