#include <cstdio> #include <iostream> #include <string.h> using namespace std; ; #define MAX 1001 struct point //点 { double x,y; }; struct line //线 { point a,b; }l[MAX]; int father[MAX],num[MAX]; double Max(double a,double b) {return a&g…
Segment set Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4479 Accepted Submission(s): 1672 Problem Description A segment and all segments which are connected with it compose a segment set.…
Segment set Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3907 Accepted Submission(s): 1471 Problem Description A segment and all segments which are connected with it compose a segment set…
Problem Description Five hundred years later, the number of dragon balls will increase unexpectedly, so it's too difficult for Monkey King(WuKong) to gather all of the dragon balls together. His country has N cities and there are exactly N dragon bal…