cf 559a **
2024-10-16 23:48:14
题意:给一个六边形,求小三角形个数
#include<cstdio>
#include<iostream>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<queue>
#include<map>
using namespace std;
#define MOD 1000000007
const int INF=0x3f3f3f3f;
const double eps=1e-;
typedef long long ll;
#define cl(a) memset(a,0,sizeof(a))
#define ts printf("*****\n");
const int MAXN=;
int n,m,tt;
int a[MAXN];
int main()
{
int i,j,k;
#ifndef ONLINE_JUDGE
freopen("1.in","r",stdin);
#endif
int a1,a2,a3,a4,a5,a6;
while(~scanf("%d%d%d%d%d%d",&a1,&a2,&a3,&a4,&a5,&a6))
{
printf("%d\n",(a1+a2+a3)*(a1+a2+a3)-a5*a5-a3*a3-a1*a1);
}
}
最新文章
- android的四层体系结构,基于mvc三层结构浅析
- 手把手搭建WAMP+PHP+SVN开发环境
- fir.im Weekly - 如何写出零 bug 的代码
- ubuntu 重启 nginx 失败,* Restarting nginx nginx ...fail!
- Ruby学习之module
- python运算符和表达式
- Codeforces 161D Distance in Tree(树的点分治)
- Hibernate,JPA注解@PrimaryKeyJoinColumn
- 20145218 《Java程序设计》课程总结
- Win7+VS2010环境下CEGUI 0.8.4编译过程详解
- oracle窗口函数中range interval的使用
- (转)struts2.0配置文件、常量配置详解
- 解决Linux文档显示中文乱码问题以及编码转换
- POI--HSSFWorkbook类
- 【译】gRPC负载均衡
- ztre的使用入门
- 当子查询内存在ORDER BY 字句时查询会报错
- netty原理解析
- 前端vue拖拽
- E325: ATTENTION
热门文章
- Bootstrap新手学习笔记——css
- JS(截取字符串,显示当前系统时间yyyy-MM-dd,从文本框得到的数值计算)
- mysql 查看 删除 日志操作总结(包括单独和主从mysql)
- Serenity框架官方文档翻译(1-2开始、安装和界面)
- kindle paperwhite折腾记
- 调用gluNurbsCurve绘制圆弧
- Android之项目推荐使用的第三方库,有助于快速开发,欢迎各位网友补充
- 将服务器上的myql数据库导入本地数据库
- 异常:The absolute uri: http://www.springframework.org/security/tags cannot be resolved in either web.xml or the jar files deployed with this application
- Linux LAMP环境搭建