-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPLAYNUM.cpp
More file actions
46 lines (44 loc) · 785 Bytes
/
Copy pathPLAYNUM.cpp
File metadata and controls
46 lines (44 loc) · 785 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
35
36
37
38
39
40
41
42
43
44
45
46
#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
int main()
{
vector<long long> arr,arra,arrb;
int num_test;
long long count ;
cin>>num_test;
while(num_test>0)
{
count=0;
long long n,q;
cin>>n>>q;
while(n>0)
{
long long key;
cin>>key;
arr.push_back(key);
n--;
}
vector<long long> a=arr;
sort(a.begin(),a.end());
reverse(a.begin(),a.end());
long long q2=q;
while(q2>0)
{long long p=0;
long long a,b;
cin>>a>>b;
arra.push_back(a);
arrb.push_back(b);
}
long long min=min_element(arra.begin(), arra.end());;
long long max=max_element(arrb.begin(), arrb.end());;
while(q>0)
{
}
cout<<count<<endl;
num_test--;
arr.clear();
}
return 0;
}