2004' ACM/ICPCѵϰ 6

B: The Bottom of a Graph