摘要: Gotta Go Fast CodeForces - 865C You're trying to set the record on your favorite video game. The game consists of Nlevels, which must be completed seq 阅读全文
posted @ 2019-07-22 20:54 yccdu 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 套娃(tao) input7 39 53 710 65 102 610 104 110 53 53 9output012 sol: 把查询想象成(x1,y1)向(x2,y2)有边当且仅当(x1<x2,y1<y2) 有个性质就是:这张图的最小链覆盖=最长反链 反链就是满足(x1<x2,y1>y2) , 阅读全文
posted @ 2019-07-22 08:30 yccdu 阅读(187) 评论(0) 推荐(0) 编辑