摘要:
二分图: 二分图又称作二部图,是图论中的一种特殊模型。 设G=(V,E)是一个无向图,如果顶点V可分割为两个互不相交的子集(A,B),并且图中的每条边(i,j)所关联的两个顶点i和j分别属于这两个不同的顶点集(i in A,j in B),则称图G为一个二分图。 简单的说,一个图被分成了两部分,相同 阅读全文
摘要:
1 #include<stdio.h> 2 #include<string.h> 3 #include<stdlib.h> 4 #include<graphics.h> 5 #include<conio.h> 6 #include<math.h> 7 #include<dos.h> 8 #defin 阅读全文
摘要:
Description The French author Georges Perec (1936–1982) once wrote a book, La disparition, without the letter 'e'. He was a member of the Oulipo group 阅读全文
摘要:
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 int init; 9 int read_mouse; 10 void cursor; 11 void newxy; 12 int main() 13 { 14 int buttons,x,y; 15 ch... 阅读全文
摘要:
Alice and Bob is playing a game. Each of them has a number. Alice’s number is A, and Bob’s number is B. Each turn, one player can do one of the follow 阅读全文
摘要:
Nikolay has decided to become the best programmer in the world! Now he regularly takes part in various programming contests, attentively listens to pr 阅读全文
摘要:
Do you know what is called ``Coprime Sequence''? That is a sequence consists of nn positive integers, and the GCD (Greatest Common Divisor) of them is 阅读全文
摘要:
Note: this is a harder version of Mirrored string I. The gorillas have recently discovered that the image on the surface of the water is actually a re 阅读全文
摘要:
1 #include<graphics.h> 2 #include<dos.h> 3 #include<stdio.h> 4 int main() 5 { 6 int i,gdriver,gmode,j,kk; 7 void *p; 8 unsigned int size; 9 gdriver=DE 阅读全文
摘要:
Every year, an elephant qualifies to the Arab Collegiate Programming Competition. He graduated this year, but that’s irrelephant. What’s important is 阅读全文