摘要:
There are n houses in the village and some bidirectional roads connecting them. Every day peole always like to ask like this "How far is it if I want 阅读全文
posted @ 2019-08-20 20:37
Xxiaoyu
阅读(151)
评论(0)
推荐(0)
摘要:
听说这道题和vector更配哦~ 用vector存放盟友,这道题就非常简单了 题意: 一个由C个国家组成的联盟,有一天L离开了,对于任意国家,只要盟友少于之前的一半,他也会离开,问X会不会离开 思路: 用vector记录与当前国家相连的国家,num数组记录开始各个国家的盟友数目,lost记录离开联盟 阅读全文
posted @ 2019-08-20 15:32
Xxiaoyu
阅读(118)
评论(0)
推荐(0)

浙公网安备 33010602011771号