hdu2586 How far away ? Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 4183 Accepted Submission(s): 1598 Problem Description There are n houses in the village and some bidirectional roads co…
Connections between cities Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 8857 Accepted Submission(s): 2151 Problem Description After World War X, a lot of cities have been seriously damag…
Nearest Common Ancestors Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 14902 Accepted: 7963 Description A rooted tree is a well-known data structure in computer science and engineering. An example is shown below: In the figure, each…