[Python] Straightforward DP
python\ndef dieSimulator(self, n: int, rollMax: List[int]) -> int:\n\tMOD = 10**9 + 7\n\tdp = [[0 for _ in range(6)] for _ in range(n)]\n\tfor i in range(0, n):
```python\ndef dieSimulator(self, n: int, rollMax: List[int]) -> int:\n\tMOD = 10**9 + 7\n\tdp = [[0 for _ in range(6)] for _ in range(n)]\n\tfor i in range(0, n):\n\t\tfor v0 in range(6):\n\t\t\tfor j in range(1, rollMax[v0]+1):\n\t\t\t\tif i >= j:\n\t\t\t\t\tfor v in range(6):\n\t\t\t\t\t\tif v != v0:\n\t\t\t\t\t\t\tdp[i][v0] = (dp[i][v0] + dp[i-j][v])%MOD\n\t\t\t\telse:\n\t\t\t\t\tdp[i][v0] += 1\n\t\t\t\t\tbreak\n\treturn sum(dp[n-1])%MOD\n```
[]