Run ID:80825
提交时间:2024-07-11 16:31:15
#include <bits/stdc++.h> using namespace std; int main() { int k, end, first; cin >> k; for (int i = 1; i <= k; i++) { if (first == 0) { first = i; end = i; } if (first == 0) { cout << -1; } else { cout << first << " " << end; } } }