摘要: 根据正方形对角的两顶点求另外两个顶点公式: x2 = (x1+x3-y3+y1)/2; y2 = (x3-x1+y1+y3)/2; x4= (x1+x3+y3-y1)/2; y4 = (-x3+x1+y1+y3)/2; 阅读全文
posted @ 2017-09-10 20:51 Pacify 阅读(180) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std; typedef long long ll; const int MAXN = 1000008; char s[MAXN]; int dx[] = {-1, -1, -1, 0, 0, 0, 1, 1, 1}; int dy[] = {-1, 0, 1, -1, 0, 1, -1, 0, 1}; ... 阅读全文
posted @ 2017-09-10 20:46 Pacify 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 套模板再算下面积即可 阅读全文
posted @ 2017-09-10 20:13 Pacify 阅读(149) 评论(0) 推荐(0) 编辑