#include <bits/stdc++.h>
#define fast cin.tie(0)->sync_with_stdio(0);
#define int long long
#define inf ((int)1e18)
using namespace std;
int32_t main(){
fast
int k;
cin>>k;
k++;
cout<<k + 2<<" "<<k * 2<<"\n";
for(int i = 0; i < k; i++) {
cout<<1<<" "<<i + 2<<"\n";
}
for(int i = 0; i < k; i++) {
cout<<i + 2<<" "<<k + 2<<"\n";
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Correct. |
2 |
Correct |
0 ms |
344 KB |
Correct. |
3 |
Correct |
0 ms |
348 KB |
Correct. |
4 |
Correct |
1 ms |
348 KB |
Correct. |
5 |
Correct |
0 ms |
344 KB |
Correct. |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
Integer parameter [name=N] equals to -33, violates the range [1, 1000] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Correct. |
2 |
Correct |
0 ms |
344 KB |
Correct. |
3 |
Correct |
0 ms |
348 KB |
Correct. |
4 |
Correct |
1 ms |
348 KB |
Correct. |
5 |
Correct |
0 ms |
344 KB |
Correct. |
6 |
Incorrect |
0 ms |
344 KB |
Integer parameter [name=N] equals to -33, violates the range [1, 1000] |
7 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
348 KB |
Correct. |
2 |
Correct |
0 ms |
344 KB |
Correct. |
3 |
Correct |
0 ms |
348 KB |
Correct. |
4 |
Correct |
1 ms |
348 KB |
Correct. |
5 |
Correct |
0 ms |
344 KB |
Correct. |
6 |
Incorrect |
0 ms |
344 KB |
Integer parameter [name=N] equals to -33, violates the range [1, 1000] |
7 |
Halted |
0 ms |
0 KB |
- |