-
Notifications
You must be signed in to change notification settings - Fork 0
/
DSANTAP.cpp
43 lines (39 loc) · 964 Bytes
/
DSANTAP.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
// 5 points
#include<bits/stdc++.h>
using namespace std;
int main()
{
int t=0; cin>>t;
while(t--)
{
int N,G,B,X,Y;
cin>>N>>G>>B>>X>>Y;
vector <int> vol;
vector <int> oldgift;
vector <int> newgift;
for(int i=0; i<G; i++)
{
int vol1; cin>>vol1;
vol.push_back(vol1);
}
int Xc, Yc, K, L;
for(int i=0; i<N; i++)
{
cin>>Xc>>Yc>>K>>L;
oldgift.push_back(K);
newgift.push_back(L);
}
cout<<1<<" "<<0<<endl;
for(int i=0; i<N; i++)
{
cout<<2<<" "<<newgift[i]<<endl;
cout<<1<<" "<<i+1<<endl;
cout<<3<<" "<<newgift[i]<<endl;
cout<<2<<" "<<oldgift[i]<<endl;
cout<<1<<" "<<0<<endl;
cout<<3<<" "<<oldgift[i]<<endl;
}
cout<<0<<endl;
}
return 0;
}