#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ar array
void print(int i, int j) {
cout << i << " " << j << "\n";
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
ll k; cin >> k;
if (k>=0) {
assert(k<=500);
print(k+3, 2*(k+1));
for (int i=2; i<=k+2; ++i) {
print(1, i);
print(i, k+3);
}
}
else {
k=-k;
assert(k<=300);
print(k+5, 3*(k+1)+2);
for (int i=2; i<=k+2; ++i) {
print(1, i);
print(i, k+3);
print(i, k+4);
}
print(k+3, k+5);
print(k+4, k+5);
}
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
384 KB |
Correct. |
2 |
Correct |
0 ms |
384 KB |
Correct. |
3 |
Correct |
1 ms |
384 KB |
Correct. |
4 |
Correct |
0 ms |
384 KB |
Correct. |
5 |
Correct |
1 ms |
384 KB |
Correct. |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
384 KB |
Correct. |
2 |
Correct |
1 ms |
384 KB |
Correct. |
3 |
Correct |
1 ms |
384 KB |
Correct. |
4 |
Correct |
1 ms |
384 KB |
Correct. |
5 |
Correct |
1 ms |
384 KB |
Correct. |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
384 KB |
Correct. |
2 |
Correct |
0 ms |
384 KB |
Correct. |
3 |
Correct |
1 ms |
384 KB |
Correct. |
4 |
Correct |
0 ms |
384 KB |
Correct. |
5 |
Correct |
1 ms |
384 KB |
Correct. |
6 |
Correct |
0 ms |
384 KB |
Correct. |
7 |
Correct |
1 ms |
384 KB |
Correct. |
8 |
Correct |
1 ms |
384 KB |
Correct. |
9 |
Correct |
1 ms |
384 KB |
Correct. |
10 |
Correct |
1 ms |
384 KB |
Correct. |
11 |
Runtime error |
1 ms |
512 KB |
Execution killed with signal 11 |
12 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
384 KB |
Correct. |
2 |
Correct |
0 ms |
384 KB |
Correct. |
3 |
Correct |
1 ms |
384 KB |
Correct. |
4 |
Correct |
0 ms |
384 KB |
Correct. |
5 |
Correct |
1 ms |
384 KB |
Correct. |
6 |
Correct |
0 ms |
384 KB |
Correct. |
7 |
Correct |
1 ms |
384 KB |
Correct. |
8 |
Correct |
1 ms |
384 KB |
Correct. |
9 |
Correct |
1 ms |
384 KB |
Correct. |
10 |
Correct |
1 ms |
384 KB |
Correct. |
11 |
Runtime error |
1 ms |
512 KB |
Execution killed with signal 11 |
12 |
Halted |
0 ms |
0 KB |
- |