File size: 400 Bytes
1fd0050
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#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;

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

    int u, v;
    for (int i = 0; i < m; ++i) {
        cin >> u >> v; // edges are read but not used
    }

    cout << 1 << '\n';
    cout << 1 << '\n';

    return 0;
}