题目如下: 解题思路:本题题目中有一点要求很关键,“we will consider that a falling domino expends no additional force to a falling or already fallen domino.”,正好对应题目中的例子2,要好好理解一下.因为输入的最大dominoes是10^5,所以要考虑性能问题.dominoes有三种状态:'R','L','.'.在最终状态里面,R和L是不会变的,只有'.'的状态可能会变成三种状态的任意一种.…