HDU 3903 Trigonometric Function
2024-09-28 06:45:45
这题真难,并不会推理。。。
#include<cstdio>
#include<cstring>
#include<cmath>
#include<algorithm>
using namespace std; long long a, b, c;
int p; int main()
{
int T;
scanf("%d", &T);
while (T--)
{
scanf("%lld%lld%lld", &a, &b, &c);
scanf("%d%d%d", &p, &p, &p);
long long x = (a + b + c)*(b + c - a)*(a + c - b)*(a + b - c);
long long z = (long long)sqrt(x);
if (z*z == x) printf("YES\n");
else printf("NO\n");
}
return ;
}
最新文章
- 谱聚类(spectral clustering)原理总结
- 【转载】Shell判断字符串包含关系的几种方法
- Python爬虫基础知识入门一
- [Linux]centOS7下RPM安装Perl
- 扩展duilib edit控件的提示功能和多种文字颜色(解决edit为password显示不正常的bug)
- html元素中class属性值多个空格分格
- c 按范围快速指定整数
- libpcap/wwinpcap
- HDU-1020(水题)
- Top 12 Best Free Network Monitoring Tools (12种免费网络监控工具)
- Discuz论坛下载与安装
- include()、include_once()与require()、require_once()的异同点
- 如何解析复杂的C语言声明
- JAVA card 应用开发(三) 把APPLET(CAP文件)装载到卡片
- 移动端click事件延迟300ms的原因以及解决办法[转载]
- 51nod 1270 数组的最大代价
- SSH学习
- Aragorn&#39;s Story HDU - 3966 -树剖模板
- eclipse快捷键调试总结 -转--快捷键大全
- python中RabbitMQ的使用(工作队列)
热门文章
- KVC 实战浅析
- Android ViewDragHelper完全解析 自定义ViewGroup神器
- 关于js向jsp中传输中文乱码问题
- 网络获取的XML的Pull解析
- JSON 串 自定义解析字段
- Class.forName() 初始化、Thread.currentThread().getContextClassLoader().getResourceAsStream
- Contest - 多校训练(985专场) Problem C: 985的方格难题
- Chapter 1 First Sight——12
- EL表达式,保留小数点后两位
- Windows查看端口被哪个进程占用