第一道独立AC的紫题。(十分激动)
# Ring Road 2
## 题面翻译
有n个城市,1->2->3->...->n->1,形成一个环,现在要添加m条给定的路,路可以建设在环内或环外,求如何建设可以使得新的路两两不相交(端点除外)。
## 题目描述
It is well known that Berland has $ n $ cities, which form the Silver ring — cities $ i $ and $ i+1 $ ( $ 1<=i<n $ ) are connected by a road, as well as the cities $ n $ and $ 1 $ . The goverment have decided to build $ m $ new roads. The list of the roads to build was prepared. Each road will connect two cities. Each road should be a curve which lies inside or outside the ring. New roads will have no common points with the ring (except the endpoints of the road).

最低0.47元/天 解锁文章
197

被折叠的 条评论
为什么被折叠?



