#include <stdio.h>
#include <vector>
using namespace std;
struct node {
int x;
int y;
}
int x[200010];
vector<node> G[200010];
int main() {
int n, l;
scanf("%d %d", &n, &l);
for(int i=0; i<n; i++) {
scanf("%d", &x[i]);
}
for(int i=0; i<l; i++) {
int x, y;
scanf("%d %d", &x, &y);
G[x].push_back(y);
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: