#include #include #include using namespace std; int A[100010]; int main() { int N, K; while(cin >> N >> K) { for(int i=0; i> A[i]; } for(int i=0; i= K) maxSize = max(maxSize, 1); for(int k=j+1; k= K and j<=i and i<=k) maxSize = max(maxSize, k-j+1); } // cout << endl; } cout << maxSize << endl; } } }