BUPT OJ146 Coin Tossing

这篇博客讲述了小聪明QiQi如何通过计算不规则凸形区域的顶点坐标来确定其面积的问题。输入包含多个测试用例,每个用例给出顶点的数量和坐标,输出要求保留一位小数。博主提到使用了暴力求解方法,但认为存在更优解法,并承认代码可能不够整洁。
摘要由CSDN通过智能技术生成

题目描述

Little smart QiQi is fond of coin tossing. This day, he came to a huge field, where there's a irregular convex swamp within. Little smart QiQi didn’t want to toss the coin into the swamp, and thus, she needed to know the area of this convex. Please help her.

输入格式

The input contains several test cases, ended with EOF. In each test case, an integer N(3≤N≤100) exists first, indicating the number of vertex. The following N lines give the coordinates

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值