-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathB_party.cpp
More file actions
34 lines (33 loc) · 741 Bytes
/
B_party.cpp
File metadata and controls
34 lines (33 loc) · 741 Bytes
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
32
33
34
#include<iostream>
#include<vector>
#include<utility>
using namespace std;
struct caso{
int n,m;
vector<pair<int,int> > v;
vector<int> unhappyness;
};
int main(){
int number;
cin >> number;
vector<caso> casos;
for(int i =0;i<number;i++){
caso nuevo;
int a,b;
cin >> a >> b;
nuevo.n = a;
nuevo.m = b;
for(int j = 0; j < a; j++){
int un_happy;
cin >> un_happy;
nuevo.unhappyness.push_back(un_happy);
}
for(int j = 0; j < b; j++){
pair<int,int> nuevo_par;
int x,y;
cin >> x >> y;
nuevo_par = make_pair(x,y);
nuevo.v.push_back(nuevo_par);
}
}
}