摘要:
In this problem, we will define a graph called star graph, and the question is to find the minimum distance between two given nodes in the star graph. 阅读全文
摘要:
Tree Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 24253 Accepted: 8060 Description Give a tree with n vertices,each edge has a length(po 阅读全文
摘要:
#include #include #include #include using namespace std; const int N=110; int pre[N],nex[N]; int z[N],y[N]; int wan[N]; int fa[N]; int findx(int x) { return fa[x]=(x==fa[x]?... 阅读全文
摘要:
Destroying The Graph Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 8503 Accepted: 2753 Special Judge Description Alice and Bob play the f 阅读全文
摘要:
Paratroopers Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 8837 Accepted: 2663 Description It is year 2500 A.D. and there is a terrible w 阅读全文
摘要:
Firing Time Limit: 5000MS Memory Limit: 131072K Total Submissions: 10905 Accepted: 3291 Description You’ve finally got mad at “the world’s most stupid 阅读全文
摘要:
The Maximum Number of Strong Kings Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 2302 Accepted: 1056 Description A tournament can be repr 阅读全文
摘要:
Unique AttackTime Limit: 5 Seconds Memory Limit: 32768 KB N supercomputers in the United States of Antarctica are connected into a network. A network 阅读全文