">using namespace std; int main() { int n, x; cin >> n >> x; vector<long long>a(n + 1); for (int i = 1; i <= n; ++i) cin >> a[i]; long long cnt = 0;//所清空房间的原来的人数 long long mina = a[1]; for (int i = 1; i <= n; ++i) mina = min(a[i], mina...