// g++-15 1.cpp -std=c++23 -O2 -I . // 壊れるとき // conda deactivate # 何回か必要なことあり // hash -r # コマンドキャッシュクリア // which -a ld // ld の先頭が /usr/bin/ld になればそのままコンパイルしてOK #include using namespace std; #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") // #include // #include // #include // using namespace __gnu_pbds; #include #include #include using namespace atcoder; using ll = long long; using ld = long double; using vi = vector; using vvi = vector; using vll = vector; using vvll = vector; using vld = vector; using vvld = vector; using vst = vector; using vvst = vector; #define fi first #define se second #define pb push_back #define eb emplace_back #define pq_big(T) priority_queue,less> #define pq_small(T) priority_queue,greater> #define all(a) a.begin(),a.end() #define rep(i,start,end) for(ll i=start;i<(ll)(end);i++) #define per(i,start,end) for(ll i=start;i>=(ll)(end);i--) #define uniq(a) sort(all(a));a.erase(unique(all(a)),a.end()) template istream& operator>>(istream& is, pair &v){ is >> v.first >> v.second; return is; } template ostream& operator<<(ostream& os, pair &v){ os << v.first << " " << v.second << "\n"; return os; } template istream& operator>>(istream& is, vector &v){ for(T &e: v) is >> e; return is; } template ostream& operator<<(ostream& os, vector v){ if(v.empty()){ os<<"\n"; return os; } for(int i=0;i>n>>k>>m; vll a(n);cin>>a; m--; rep(i,0,n){ if(i==m)a[i]--; a[i]--; } if(a[m]>t; while(t--){ solve(); } }