摘要:
LightOJ 1289 LCM from 1 to nDescription Given an integer n, you have to find lcm(1, 2, 3, …, n) lcm means least common multiple. For example... 阅读全文
摘要:
一.二分图二分图又称作二部图,是图论中的一种特殊模型。 设G=(V,E)是一个无向图,如果顶点V可分割为两个互不相交的子集(A,B),并且图中的每条边(i,j)所关联的两个顶点i和j分别属于这两个不同的顶点集(i in A,j in B),则称图G为一个二分图。当且仅当无向图G的每... 阅读全文
摘要:
u到v或者v到uDescriptionIn order to make their sons brave, Jiajia and Wind take them to a big cave. The cave has n rooms, and one-way corridors ... 阅读全文