摘要:
大概解决问题:给定优先级关系,输出依次顺序 方法:先把最低级的放入vector,最后反向输出即可。 #include<bits/stdc++.h> using namespace std; const int MAXN=30030; bool vis[MAXN]; int in[MAXN]; int 阅读全文
摘要:
Have you ever heard of the word "six degrees of separation"? It is said that two individuals are connected by at most five others. Lee is wondering ab 阅读全文
摘要:
An equal sum partition of a sequence of numbers is a grouping of the numbers (in the same order as the original sequence) in such a way that each grou 阅读全文
摘要:
George took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the origina 阅读全文
摘要:
Using each of the digits 1, 2, 3,...,D1 exactly once to form D1 digit numbers, how many are divisible by D2. 输入 The input data will contain multiple c 阅读全文