답안 #988173

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
988173 2024-05-24T07:58:31 Z vjudge1 Konstrukcija (COCI20_konstrukcija) C++17
15 / 110
1 ms 348 KB
#include <bits/stdc++.h>
using namespace std;
#define ll long long

void solve() {
    int k;
    cin >> k;
    if (k == 0) {
        cout << "6 6\n1 4\n1 5\n4 3\n5 3\n3 2\n2 6\n";
        return;
    }
    cout << k + 3 << " " << 2 * k + 2 << '\n';
    for (int i = 2; i <= k + 2; i++) {
        cout << "1 " << i << '\n';
        cout << i << " " << k + 3 << '\n';
    }
}

int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);

    int tc = 1;
    //cin >> tc;
    for (int i = 1; i <= tc; i++) {
        solve();
    }

    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 348 KB Correct.
2 Correct 1 ms 348 KB Correct.
3 Correct 1 ms 348 KB Correct.
4 Correct 1 ms 348 KB Correct.
5 Correct 1 ms 348 KB Correct.
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 348 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 1 ms 348 KB Correct.
3 Correct 1 ms 348 KB Correct.
4 Correct 1 ms 348 KB Correct.
5 Correct 1 ms 348 KB Correct.
6 Incorrect 1 ms 348 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 1 ms 348 KB Correct.
3 Correct 1 ms 348 KB Correct.
4 Correct 1 ms 348 KB Correct.
5 Correct 1 ms 348 KB Correct.
6 Incorrect 1 ms 348 KB Integer parameter [name=N] equals to -33, violates the range [1, 1000]
7 Halted 0 ms 0 KB -