#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
#define ff first
#define ss second
const int N = 1000;
int n, m;
vector<pii> S, T;
void scissors() {
m = max(S[0].ff, S[2].ff);
n = max(S[0].ss, S[2].ss);
cout << "scissors\n";
cout << "0 " << n * m << '\n';
for (int i = 0; i < m; ++i)
for (int j = 0; j < n; ++j) {
cout << "4 ";
cout << i << ' ' << j << ' ';
cout << i + 1 << ' ' << j << '\n';
cout << i + 1 << ' ' << j + 1 << ' ';
cout << i << ' ' << j + 1 << ' ';
}
}
void tape() {
m = max(T[0].ff, T[2].ff);
n = max(T[0].ss, T[2].ss);
cout << "tape\n";
cout << m * n << ' ';
for (int i = 1; i <= m * n; ++i) cout << i << ' ';
cout << '\n';
for (int i = 0; i < m; ++i)
for (int j = 0; j < n; ++j) {
cout << "4 ";
cout << i << ' ' << j << ' ';
cout << i + 1 << ' ' << j << '\n';
cout << i + 1 << ' ' << j + 1 << ' ';
cout << i << ' ' << j + 1 << ' ';
}
cout << "4\n";
for (pii x : T) cout << x.ff << ' ' << x.ss << ' ';
cout << '\n';
}
int main() {
cin.tie(NULL)->sync_with_stdio(false);
cin >> n;
S.resize(n);
for (pii &x : S) cin >> x.ff >> x.ss;
cin >> m;
T.resize(m);
for (pii &x : T) cin >> x.ff >> x.ss;
scissors();
tape();
}
/** /\_/\
* (= ._.)
* / >0 \>1
**/
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
204 KB |
used 204 vertices, largest error was 0.00000000966667 |
2 |
Correct |
1 ms |
308 KB |
used 172 vertices, largest error was 0.00000001150000 |
3 |
Correct |
1 ms |
204 KB |
used 252 vertices, largest error was 0.00000001200000 |
4 |
Correct |
1 ms |
204 KB |
used 140 vertices, largest error was 0.00000001150000 |
5 |
Correct |
1 ms |
204 KB |
used 172 vertices, largest error was 0.00000001150000 |
6 |
Correct |
0 ms |
204 KB |
used 172 vertices, largest error was 0.00000000960000 |
7 |
Correct |
0 ms |
204 KB |
used 92 vertices, largest error was 0.00000000900000 |
8 |
Correct |
1 ms |
204 KB |
used 252 vertices, largest error was 0.00000000966667 |
9 |
Correct |
1 ms |
204 KB |
used 252 vertices, largest error was 0.00000001140000 |
10 |
Correct |
0 ms |
204 KB |
used 44 vertices, largest error was 0.00000000850000 |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Execution timed out |
1090 ms |
68232 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
204 KB |
used 204 vertices, largest error was 0.00000000966667 |
2 |
Correct |
1 ms |
308 KB |
used 172 vertices, largest error was 0.00000001150000 |
3 |
Correct |
1 ms |
204 KB |
used 252 vertices, largest error was 0.00000001200000 |
4 |
Correct |
1 ms |
204 KB |
used 140 vertices, largest error was 0.00000001150000 |
5 |
Correct |
1 ms |
204 KB |
used 172 vertices, largest error was 0.00000001150000 |
6 |
Correct |
0 ms |
204 KB |
used 172 vertices, largest error was 0.00000000960000 |
7 |
Correct |
0 ms |
204 KB |
used 92 vertices, largest error was 0.00000000900000 |
8 |
Correct |
1 ms |
204 KB |
used 252 vertices, largest error was 0.00000000966667 |
9 |
Correct |
1 ms |
204 KB |
used 252 vertices, largest error was 0.00000001140000 |
10 |
Correct |
0 ms |
204 KB |
used 44 vertices, largest error was 0.00000000850000 |
11 |
Execution timed out |
1090 ms |
68232 KB |
Time limit exceeded |
12 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Execution timed out |
1086 ms |
107384 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Execution timed out |
1087 ms |
68036 KB |
Time limit exceeded |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
204 KB |
used 204 vertices, largest error was 0.00000000966667 |
2 |
Correct |
1 ms |
308 KB |
used 172 vertices, largest error was 0.00000001150000 |
3 |
Correct |
1 ms |
204 KB |
used 252 vertices, largest error was 0.00000001200000 |
4 |
Correct |
1 ms |
204 KB |
used 140 vertices, largest error was 0.00000001150000 |
5 |
Correct |
1 ms |
204 KB |
used 172 vertices, largest error was 0.00000001150000 |
6 |
Correct |
0 ms |
204 KB |
used 172 vertices, largest error was 0.00000000960000 |
7 |
Correct |
0 ms |
204 KB |
used 92 vertices, largest error was 0.00000000900000 |
8 |
Correct |
1 ms |
204 KB |
used 252 vertices, largest error was 0.00000000966667 |
9 |
Correct |
1 ms |
204 KB |
used 252 vertices, largest error was 0.00000001140000 |
10 |
Correct |
0 ms |
204 KB |
used 44 vertices, largest error was 0.00000000850000 |
11 |
Execution timed out |
1090 ms |
68232 KB |
Time limit exceeded |
12 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
204 KB |
used 204 vertices, largest error was 0.00000000966667 |
2 |
Correct |
1 ms |
308 KB |
used 172 vertices, largest error was 0.00000001150000 |
3 |
Correct |
1 ms |
204 KB |
used 252 vertices, largest error was 0.00000001200000 |
4 |
Correct |
1 ms |
204 KB |
used 140 vertices, largest error was 0.00000001150000 |
5 |
Correct |
1 ms |
204 KB |
used 172 vertices, largest error was 0.00000001150000 |
6 |
Correct |
0 ms |
204 KB |
used 172 vertices, largest error was 0.00000000960000 |
7 |
Correct |
0 ms |
204 KB |
used 92 vertices, largest error was 0.00000000900000 |
8 |
Correct |
1 ms |
204 KB |
used 252 vertices, largest error was 0.00000000966667 |
9 |
Correct |
1 ms |
204 KB |
used 252 vertices, largest error was 0.00000001140000 |
10 |
Correct |
0 ms |
204 KB |
used 44 vertices, largest error was 0.00000000850000 |
11 |
Execution timed out |
1090 ms |
68232 KB |
Time limit exceeded |
12 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
204 KB |
used 204 vertices, largest error was 0.00000000966667 |
2 |
Correct |
1 ms |
308 KB |
used 172 vertices, largest error was 0.00000001150000 |
3 |
Correct |
1 ms |
204 KB |
used 252 vertices, largest error was 0.00000001200000 |
4 |
Correct |
1 ms |
204 KB |
used 140 vertices, largest error was 0.00000001150000 |
5 |
Correct |
1 ms |
204 KB |
used 172 vertices, largest error was 0.00000001150000 |
6 |
Correct |
0 ms |
204 KB |
used 172 vertices, largest error was 0.00000000960000 |
7 |
Correct |
0 ms |
204 KB |
used 92 vertices, largest error was 0.00000000900000 |
8 |
Correct |
1 ms |
204 KB |
used 252 vertices, largest error was 0.00000000966667 |
9 |
Correct |
1 ms |
204 KB |
used 252 vertices, largest error was 0.00000001140000 |
10 |
Correct |
0 ms |
204 KB |
used 44 vertices, largest error was 0.00000000850000 |
11 |
Execution timed out |
1090 ms |
68232 KB |
Time limit exceeded |
12 |
Halted |
0 ms |
0 KB |
- |