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>
#define int long long
#define fi first
#define se second
#define keish ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
using namespace std;
int n, m, a, b;
signed main(){
keish;
cin >> n >> m;
if(m == n - 1){
vector<int> v;
for(int i = 0; i < m; i++){
cin >> a >> b;
v.push_back(a);
}
cout << m << '\n';
for(auto x : v) cout << x << " " << 1 << '\n';
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |