首页 > 其他 > 详细

CodeForces 1109F. Sasha and Algorithm of Silence's Sounds

时间:2019-02-20 11:44:48      阅读:135      评论:0      收藏:0      [点我收藏+]

题目简述:给定一个$n \times m$的二维矩阵$a[i][j]$,其中$1 \leq nm \leq 2 \times 10^5$,矩阵元素$1 \leq a[i][j] \leq nm$且互不相等。一个区间$[l, r]$是【好】的,如果所有在$[l, r]$范围内元素(在平面上)构成了一棵树。求【好】区间$[l, r](1 \leq l \leq r \leq nm)$的个数。

解:code

 

CodeForces 1109F. Sasha and Algorithm of Silence's Sounds

原文:https://www.cnblogs.com/TinyWong/p/10405580.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!