#P1284. SP教数学

SP教数学

Problem Description

Input Format

Output Format

对于每组数据的2操作,输出一行对1e9 + 7取模的答案

7 4
2 2 1 1 3 3 2
2 1 5
2 6 7
1 3 4 3
2 6 6
6
3
2

Hint

1 <=  n ,m <=10^5

如果需要使用long long类型,请用cin cout "%lld" 输入 输出