链接:登录—专业IT笔试面试备考平台_牛客网
来源:牛客网
根据给出的三角形3条边a, b, c,计算三角形的周长和面积。
数据范围: 0<a,b,c≤100000 0 < a,b,c \le 100000 \ 0<a,b,c≤100000
一行,三角形3条边(能构成三角形),中间用一个空格隔开
一行,三角形周长和面积(保留两位小数),中间用一个空格隔开,输出具体格式详见输出样例。
3 3 3
circumference=9.00 area=3.90
#define _CRT_SECURE_NO_WARNINGS
#include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> PII;
typedef pair<string, int> PI;
typedef long long ll;
typedef unsigned long long ULL;
#define cinios (ios::sync_with_stdio(false), cin.tie(0), cout.tie(0))
#define endl '\n';
/*
海伦公式&