File size: 357 Bytes
1fd0050
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <bits/stdc++.h>
using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int n, m;
    if (!(cin >> n >> m)) return 0;

    long long a;
    for (int i = 0; i < 10; ++i) cin >> a;

    int u, v;
    for (int i = 0; i < m; ++i) {
        cin >> u >> v;
    }

    cout << 1 << "\n" << 1 << "\n";
    return 0;
}