摘要: Long is a huge fan of CFC (Codeforces Fried Chicken). But the price of CFC is increasing, so he decides to... 阅读全文
posted @ 2019-11-20 22:04 风骨散人 阅读(111) 评论(0) 推荐(0) 编辑
摘要: Bob is an avid fan of the video game "League of Leesins", and today he celebrates as the League of Leesins... 阅读全文
posted @ 2019-11-20 21:41 风骨散人 阅读(85) 评论(0) 推荐(0) 编辑
摘要: Hanh lives in a shared apartment. There are nn people (including Hanh) living there, each has a private fr... 阅读全文
posted @ 2019-11-20 21:37 风骨散人 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Bob watches TV every day. He always sets the volume of his TV to bb. However, today he is angry to find ou... 阅读全文
posted @ 2019-11-20 21:32 风骨散人 阅读(86) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;const int maxn=100+10;int n,m;vector G[maxn];//G[i]表示i... 阅读全文
posted @ 2019-11-20 15:32 风骨散人 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 拓扑排序的实现条件,以及结合应用场景,我们都能得到拓扑排序适用于DAG图(Directed Acyclic Graph简称DAG)有向无环图, 根据关系我们能得到一个线性序列,实现的方式是DFS,具体的实现原理,... 阅读全文
posted @ 2019-11-20 15:31 风骨散人 阅读(201) 评论(0) 推荐(0) 编辑