HDU6300Triangle Partition
给定3n个点,保证3点不共线,构造n个三角形,输出任一方案。
以x为第一关键字,y为第二关键字排序。然后3个3个的取就OK。
#include<cstdio>
#include<algorithm>
using namespace std;
int n, T;
struct hh{
int x, y, num;
bool operator < (...
原创
2018-11-02 14:49:23 ·
220 阅读 ·
0 评论