forked from projectX-india/madlab-hack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path105C.cpp
73 lines (69 loc) · 1.51 KB
/
105C.cpp
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#include<bits/stdc++.h>
using namespace std;
#define mod 1000000007
#define pb push_back
#define mp make_pair
#define fi first
#define sec second
typedef long long ll;
typedef long double ld;
#define pii pair<ll,ll>
#define vi vector< ll >
#define vvi vector< vi >
#define vpi vector< pii >
#define vvpi vector< vpi >
#define fast ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0)
#define test(t) ll t;cin>>t;while(t--)
#define mem(a,b) memset(a,b,sizeof(a))
#define inn freopen("input.txt", "r", stdin)
#define outt freopen("output.txt", "w", stdout)
#define all(arr) arr.begin(),arr.end()
#define fr(i,n) for(ll i=0;i<(n);++i)
#define rep(i,a,b) for(ll i=a;i<=b;++i)
#define per(i,a,b) for(ll i=a;i>=b;i--)
#define remin(a,b) (a=min((a),(b)))
#define remax(a,b) (a=max((a),(b)))
ll calc(vi a, vi b){
ll n = a.size();
ll m = b.size();
vi su(n+1);
ll r = 0;
bool aa=true;
for(ll i=0;i<n+1;++i){
aa=!aa;
}
for(int i=0;i<n+1;i++){
cout<<su[i]<<" ";
}
cout<<"\n";
}
//solver function
void sol(){
ll n,m;
cin>>n>>m;
vi al,ar,bl,br;
fr(i,n){
ll temp;
cin>>temp;
if(temp<0){
al.pb(-1*temp);
}else{
ar.pb(temp);
}
}
fr(i,m){
ll temp;
cin>>temp;
if(temp<0){
bl.pb(-1*temp);
}else{
br.pb(temp);
}
}
}
int main(void){
fast;
test(t){
sol();
}
}