CF985G Team Players
题目描述
### 题目大意
有 $n$ 个点和 $m$ 条边,点编号依次为 $0,1,\cdots, n-1$。
如果一个点的三元组 $(i,j,k)~(i
输入格式
第一行两个整数 $n, m$($3 \le n \le 2\times 10 ^ 5, 0\le m \le 2\times 10 ^ 5$)。
接下来一行三个小于等于 $10 ^ 6$ 的正整数 $A, B, C$。
接下来 $m$ 行,每行两个整数 $u, v$ 表示 $u, v$ 间有一条边。
输出格式
一行一个整数表示答案。
说明/提示
In the first example all $ 4 $ teams are valid, i.e. triples: {0, 1, 2}, {0, 1, 3}, {0, 2, 3} {1, 2, 3}.
In the second example teams are following: {0, 2, 3}, {1, 2, 3}.
In the third example teams are following: {0, 1, 2}, {0, 1, 4}, {0, 1, 5}, {0, 2, 4}, {0, 2, 5}, {1, 2, 3}, {1, 2, 4}, {1, 2, 5}.