#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define endl "\n"
const int MOD = 998244353;
void solve(){
int k; cin >> k;
k++;
int n = k + 2;
int m = 2 * k;
cout << n << " " << m << endl;
for(int i = 2; i <= k + 1; i++){
cout << 1 << " " << i << endl;
cout << i << " " << n << endl;
}
}
signed main(){
ios_base::sync_with_stdio(0);
cin.tie(0);
//freopen("inpt.txt", "r", stdin);
//freopen("out.txt", "w", stdout);
//int tt; cin >> tt;
int tt = 1;
for(int t = 1; t <= tt; t++){
solve();
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Correct. |
2 |
Correct |
1 ms |
340 KB |
Correct. |
3 |
Correct |
1 ms |
212 KB |
Correct. |
4 |
Correct |
1 ms |
212 KB |
Correct. |
5 |
Correct |
1 ms |
340 KB |
Correct. |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
320 KB |
Integer parameter [name=N] equals to -33, violates the range [1, 1000] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Correct. |
2 |
Correct |
1 ms |
340 KB |
Correct. |
3 |
Correct |
1 ms |
212 KB |
Correct. |
4 |
Correct |
1 ms |
212 KB |
Correct. |
5 |
Correct |
1 ms |
340 KB |
Correct. |
6 |
Incorrect |
1 ms |
320 KB |
Integer parameter [name=N] equals to -33, violates the range [1, 1000] |
7 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
212 KB |
Correct. |
2 |
Correct |
1 ms |
340 KB |
Correct. |
3 |
Correct |
1 ms |
212 KB |
Correct. |
4 |
Correct |
1 ms |
212 KB |
Correct. |
5 |
Correct |
1 ms |
340 KB |
Correct. |
6 |
Incorrect |
1 ms |
320 KB |
Integer parameter [name=N] equals to -33, violates the range [1, 1000] |
7 |
Halted |
0 ms |
0 KB |
- |