mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 1363.c
This commit is contained in:
parent
88839a9866
commit
14271b73d8
11
QUSTOJ/1363.c
Normal file
11
QUSTOJ/1363.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
/*This program does not use #define to solve the problem*/
|
||||
int main()
|
||||
{
|
||||
double a,b,c,p;
|
||||
scanf("%lf %lf %lf",&a,&b,&c);
|
||||
p=(a+b+c)/2;
|
||||
printf("%.3lf\n",sqrt(p*(p-a)*(p-b)*(p-c)));
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user