spoj5464 Counting triangles 和 spoj6408 Counting Triangles 2
spoj5464Countingtriangles和spoj6408CountingTriangles2考虑以(x,y)为直角的等腰三角形个数F(x,y),设绕(x,y)逆时针方向的第一个点是(a,b),则另一个点坐标为(x+y-b,y-x+a)需满足0#include #include using namespace std;int main(void){ int u,X,Y,x,y,t1,t