#include <bits/stdc++.h>
#define ll long long
#define pb push_back
using namespace std;
vector<int> a;
vector<vector<int>> adj;
int main() {
ll n, m;
cin >> n >> m;
a = vector<int>(n);
adj = vector<vector<int>>(n);
for (int i = 0; i < n; ++i) cin >> a[i];
while (m--) {
int u, v;
cin >> u >> v;
--u; --v;
adj[u].pb(v);
adj[v].pb(u);
}
cout << 2*n << '\n';
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |