<swustoj>?id=1159 吃披萨

链接http://acm.swust.edu.cn/problem/1159/

海伦公式http://baike.baidu.com/view/1279.htm

#include <stdio.h>
#include <math.h>
#define PI 3.14
int main()
{
    double r,a,b,c,p;
    double s_circle,s_triangle;
    while(scanf("%lf %lf %lf %lf",&r,&a,&b,&c)!=EOF)
    {
        s_circle=PI*r*r;
        p=(a+b+c)/2;
        s_triangle=sqrt(p*(p-a)*(p-b)*(p-c));
        if(s_circle>s_triangle)
        {
            printf("A\n");
        }
        else
        {
            printf("B\n");
        }
    }
    return 0;
}

 

转载于:https://www.cnblogs.com/niconiconi/p/5724087.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
<!DOCTYPE html> <html> <head> <title>用户注册页面</title> </head> <body> <h1>用户注册页面</h1> <form action="mailto:youremail@example.com" method="post" enctype="text/plain"> <table> <tr> <td><label for="name">姓名:</label></td> <td><input type="text" id="name" name="name"></td> </tr> <tr> <td><label for="gender">性别:</label></td> <td> <input type="radio" id="male" name="gender" value="male"><label for="male">男</label> <input type="radio" id="female" name="gender" value="female"><label for="female">女</label> </td> </tr> <tr> <td><label for="hobby">爱好:</label></td> <td> <input type="checkbox" id="reading" name="hobby" value="reading"><label for="reading">阅读</label> <input type="checkbox" id="music" name="hobby" value="music"><label for="music">音乐</label> <input type="checkbox" id="sports" name="hobby" value="sports"><label for="sports">运动</label> </td> </tr> <tr> <td><label for="city">所在城市:</label></td> <td> <select id="city" name="city"> <option value="beijing">北京</option> <option value="shanghai">上海</option> <option value="guangzhou">广州</option> <option value="shenzhen">深圳</option> </select> </td> </tr> <tr> <td><label for="food">喜欢的食物:</label></td> <td> <select id="food" name="food" multiple> <option value="pizza">披萨</option> <option value="hamburger">汉堡包</option> <option value="hotpot">火锅</option> <option value="sushi">寿司</option> </select> </td> </tr> <tr> <td><label for="photo">头像:</label></td> <td><input type="file" id="photo" name="photo"></td> </tr> <tr> <td colspan="2"> <input type="submit" value="提交"> <input type="reset" value="重置"> </td> </tr> </table> </form> </body> </html>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值