# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
999025 | vjudge1 | Konstrukcija (COCI20_konstrukcija) | C++17 | 1 ms | 348 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
int main(){
int k;
cin >> k;
if (1 <= k < 500){
int n = k + 3;
vector<pair<int, int>> edges;
for (int i = 2; i < n; i ++){
edges.push_back({1, i});
edges.push_back({i, n});
}
cout << n << " " << edges.size() << endl;
for (auto [u, v] : edges)
cout << u << " " << v << endl;
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |