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