#include using namespace std; const double eps = 1e-6; int subtask; double sq(double x) { return x*x; } double dist(double x1, double y1, double x2, double y2) { return sqrt( sq(x1 - x2) + sq(y1 - y2) ); } const string tr = "triangle"; void solve() { double x1, y1, x2, y2, x3, y3; cin>>x1>>y1>>x2>>y2>>x3>>y3; assert(-101.0 <= x1 && x1 <= 101.0); assert(-101.0 <= y1 && y1 <= 101.0); assert(-101.0 <= x2 && x2 <= 101.0); assert(-101.0 <= y2 && y2 <= 101.0); assert(-101.0 <= x3 && x3 <= 101.0); assert(-101.0 <= y3 && y3 <= 101.0); double l[3]; l[0] = dist(x1, y1, x2, y2); l[1] = dist(x2, y2, x3, y3); l[2] = dist(x1, y1, x3, y3); sort(l, l + 3); string side, angle; if ( fabs(l[0] - l[1]) < eps || fabs(l[1] - l[2]) < eps ) { side = "Isosceles"; } else { side = "Scalene"; } angle = "acute"; if ( fabs(sq(l[0]) + sq(l[1]) - sq(l[2]) ) < eps ) { angle = "right"; } if ( sq(l[0]) + sq(l[1]) < sq(l[2]) - eps ) { angle = "obtuse"; } if (subtask == 1) { cout<>subtask; int test; cin>>test; assert(test <= 60); while (test--) { solve(); } return 0; }