Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include <bits/stdc++.h>struct Node {int v, p;bool operator < (const Node& b) const{return v > b.v;}Node (int vv = 0, int pp = 0){v = vv;p = pp;}};int main(){std::ios::sync_with_stdio(false);std::cin.tie(nullptr);std::cout.tie(nullptr);int t;std::cin >> t;while (t--){int n, m, k;std::cin >> n >> m >> k;std::vector<Node> a;std::vector<Node> b;int res{0};