#include using ll = long long; using llu = long long unsigned; using namespace std; #define MOD 998244353 int main() { int N, M; cin >> N >> M; vector A(N); vector B(M); for (auto &x : A) { cin >> x; } for (auto &x : B) { cin >> x; } multimap score; double border = 0.0; for (int i=0; i border) { score.insert(make_pair(tmpScore, j+1)); } } if (score.size() > M) { auto itr = score.rbegin(); for (int i=0; ifirst; } } int count = 0; for (auto itr=score.rbegin(); ; itr++) { cout << itr->second << endl; count++; if (count >= M) { break; } } return 0; }