-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path19.09.10(geron).cpp
More file actions
13 lines (13 loc) · 1 KB
/
19.09.10(geron).cpp
File metadata and controls
13 lines (13 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
double x1,x2,x3,y1,y2,y3;
int main(){
cin>>x1>>y1>>x2>>y2>>x3>>y3;
//a=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))
//b=sqrt((x2-x3)*(x2-x3)+(y2-y3)*(y2-y3))
//c=sqrt((x1-x3)*(x1-x3)+(y1-y3)*(y1-y3))
//p=((sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))+sqrt((x2-x3)*(x2-x3)+(y2-y3)*(y2-y3))+sqrt((x1-x3)*(x1-x3)+(y1-y3)*(y1-y3)))/2)
cout<<sqrt(((sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))+sqrt((x2-x3)*(x2-x3)+(y2-y3)*(y2-y3))+sqrt((x1-x3)*(x1-x3)+(y1-y3)*(y1-y3)))/2)*(((sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))+sqrt((x2-x3)*(x2-x3)+(y2-y3)*(y2-y3))+sqrt((x1-x3)*(x1-x3)+(y1-y3)*(y1-y3)))/2)-sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)))*(((sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))+sqrt((x2-x3)*(x2-x3)+(y2-y3)*(y2-y3))+sqrt((x1-x3)*(x1-x3)+(y1-y3)*(y1-y3)))/2)-sqrt((x2-x3)*(x2-x3)+(y2-y3)*(y2-y3)))*(((sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))+sqrt((x2-x3)*(x2-x3)+(y2-y3)*(y2-y3))+sqrt((x1-x3)*(x1-x3)+(y1-y3)*(y1-y3)))/2)-sqrt((x1-x3)*(x1-x3)+(y1-y3)*(y1-y3))));
}