#include using namespace std; typedef long long ll; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b>N>>K; vector A(K); for(int i=0;i>A[i]; bool ok=true; for(int i=0;i