
强联通分量
大橘为重eleven
每天都因为自己太菜了而自闭
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Hawk-and-Chicken详解
题目描述: Kids in kindergarten enjoy playing a game called Hawk-and-Chicken. But there always exists a big problem: every kid in this game want to play the role of Hawk. So the teacher came up with an ide...原创 2019-08-24 15:35:49 · 900 阅读 · 0 评论 -
迷宫城堡
题目描述: 为了训练小希的方向感,Gardon建立了一座大城堡,里面有N个房间(N<=10000)和M条通道(M<=100000),每个通道都是单向的,就是说若称某通道连通了A房间和B房间,只说明可以通过这个通道由A房间到达B房间,但并不说明通过它可以由B房间到达A房间。Gardon需要请你写个程序确认一下是否任意两个房间都是相互连通的,即:对于任意的i和j,至少存在一条路径可以从房间...原创 2019-08-25 19:59:39 · 328 阅读 · 0 评论 -
Popular Cows
题目描述: DescriptionEvery cow’s dream is to become the most popular cow in the herd. In a herd of N (1 <= N <= 10,000) cows, you are given up to M (1 <= M <= 50,000) ordered pairs of the for...原创 2019-08-25 20:10:26 · 632 阅读 · 0 评论 -
Summer Holiday
题目描述: To see a World in a Grain of Sand And a Heaven in a Wild Flower, Hold Infinity in the palm of your hand And Eternity in an hour. —— William Blake 听说lcy帮大家预定了新马泰7日游,Wiskey真是高兴的夜不能...原创 2019-08-25 20:38:06 · 264 阅读 · 0 评论 -
Network
题目描述: A Telephone Line Company (TLC) is establishing a new telephone cable network. They are connecting several places numbered by integers from 1 to N . No two places have the same number. The lines ...原创 2019-08-25 20:48:48 · 315 阅读 · 0 评论 -
SPF
题目描述: Consider the two networks shown below. Assuming that data moves around these networks only between directly connected nodes on a peer-to-peer basis, a failure of a single node, 3, in the network...原创 2019-08-25 21:00:26 · 545 阅读 · 0 评论