Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
¡Arriba, Papalotes, Arriba!
//g++ 5.4.0 #include <iostream> #include <math.h> #include <set> using namespace std; int main() { int casos; double AB,BC,AC,CM,CN; double BN,AM,S,h1,h2; double A_ABC,A_BMC,A_ABM,A_BMN,A_MNC; set<double> resultados; cin>>casos; while(casos--){ cin>>AB>>BC>>AC>>CM>>CN; AM=AC-CM; BN=BC-CN; S=((AB+BC+AC)/2); A_ABC=sqrt(S*(S-AB)*(S-BC)*(S-AC)); h1=(2*A_ABC); h1=h1/AC; A_BMC=CM*h1; A_BMC=A_BMC/2; A_ABM=AM*h1; A_ABM=A_ABM/2; h2=2*A_BMC; h2=h2/BC; //cout<<h2; A_BMN=h2*BN; A_BMN=A_BMN/2; //cout<<h2<<" "<<CN<<" \n"; A_MNC=h2*CN; A_MNC=A_MNC/2; resultados.insert(A_ABM); resultados.insert(A_BMN); resultados.insert(A_MNC); //resultados.insert(A_ABC); //resultados.insert(A_BMC); for(auto a: resultados){ cout<<a<<"\n"; } resultados.clear(); } }
run
|
edit
|
history
|
help
0
MatrixVectorConversion
Peg Grammar Parser Grasshopper Language
Two-phase sample with GCC
std_minmax_unexpected_behaviour.cpp
Vector+-OpLoad
A • Potato Sacks
Dar
带头结点的单链表
memcpy
Game