并查集
*红小豆
这个作者很懒,什么都没留下…
展开
-
并查集-传染
题:Severe acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global threat in mid-March 2003. To minimize transmission to others, the best strategy is ...原创 2019-03-16 13:59:06 · 170 阅读 · 0 评论 -
POJ - 3268
One cow from each ofNfarms (1 ≤N≤ 1000) conveniently numbered 1..Nis going to attend the big cow party to be held at farm #X(1 ≤X≤N). A total ofM(1 ≤M≤ 100,000) unidirectional (one-way ro...原创 2019-04-10 20:52:52 · 115 阅读 · 0 评论