hiho week 316 register

Ended

Participants:26

Verdict:Accepted
Score:100 / 100
Submitted:2020-07-25 11:17:11

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#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};
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX