摘要: T1 设f[i][j][k]代表k次操作后a[i]<a[j]的概率 枚举翻转[l,r]转移: 1>l<=i<=r<j f[l+r-i][j][k-1] 2>i<l<=j<=r f[i][l+r-j][k-1] 3>l<=i<j<=r f[l+r-i][l+r-j][k-1] 显然第一种和第二种的转移 阅读全文
posted @ 2020-03-05 22:08 ATHOSD 阅读(112) 评论(0) 推荐(0) 编辑