Submission #781649

#TimeUsernameProblemLanguageResultExecution timeMemory
781649kebineNaboj (COCI22_naboj)C++17
0 / 110
54 ms3688 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...