#include<bits/stdc++.h> #define SINGLE_INPUT #define ll long long #define ull unsigned long long #define N 500005 #define MOD 998244353 usingnamespace std;
random_device seed; ranlux48 engine(seed()); intrandom(int l, int r){ uniform_int_distribution<> distrib(l, r); returndistrib(engine); } template<classt,classu> ostream& operator<<(ostream& os,const pair<t,u>& p) { return os<<'['<<p.first<<", "<<p.second<<']'; } template<classt> ostream& operator<<(ostream& os,const vector<t>& v) { os<<'['; int s = 1; for(auto e:v) { if (s) s = 0; else os << ", "; os << e; } return os<<']'; } template<classt,classu> ostream& operator<<(ostream& os,const map<t,u>& mp){ os<<'{'; int s = 1; for(auto [x,y]:mp) { if (s) s = 0; else os << ", "; os<<x<<": "<<y; } return os<<'}'; }
voidsol(){ int n = 2, k = 1; cin >> n >> k; vector<int> a(k); iota(a.begin(), a.end(), 1); int c = ask(a).second; int u=0, d=0; for (int i=0; i<k; i++) { int t = a[i]; a[i] = k+1; auto [p, v] = ask(a); // cout << p << " " << v << endl; if (v < c) u++; elseif (v > c) d++; a[i] = t; } if (u) { cout << "! " << k-u+1 << endl; } else { cout << "! " << d << endl; } }