【题目描述】
【输入】
【输出】
【输入样例】
【输出样例】
#include<iostream> #include<cstdio> #include<cmath> using namespace std; int main(){ double xa,ya,xb,yb,xc,yc,s;//默认实数双精度更胜任 cin>>xa>>ya>>xb>>yb>>xc>>yc;//下面为坐标计算面积公式 s=abs(0.5*((xb-xa)*(yc-ya)-(xc-xa)*(yb-ya))); printf("%.2f",s); return 0; }//OK
Powered by 孙会中 @ 2024-2026【 www.sunhuizhong.cn 】All rights reserved
访问统计:386183 本月:281 上月:799 今日:7 昨日:6 当前在线:1人