题意:给一个六边形,求小三角形个数

 #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);
}
}

最新文章

  1. android的四层体系结构,基于mvc三层结构浅析
  2. 手把手搭建WAMP+PHP+SVN开发环境
  3. fir.im Weekly - 如何写出零 bug 的代码
  4. ubuntu 重启 nginx 失败,* Restarting nginx nginx ...fail!
  5. Ruby学习之module
  6. python运算符和表达式
  7. Codeforces 161D Distance in Tree(树的点分治)
  8. Hibernate,JPA注解@PrimaryKeyJoinColumn
  9. 20145218 《Java程序设计》课程总结
  10. Win7+VS2010环境下CEGUI 0.8.4编译过程详解
  11. oracle窗口函数中range interval的使用
  12. (转)struts2.0配置文件、常量配置详解
  13. 解决Linux文档显示中文乱码问题以及编码转换
  14. POI--HSSFWorkbook类
  15. 【译】gRPC负载均衡
  16. ztre的使用入门
  17. 当子查询内存在ORDER BY 字句时查询会报错
  18. netty原理解析
  19. 前端vue拖拽
  20. E325: ATTENTION

热门文章

  1. Bootstrap新手学习笔记——css
  2. JS(截取字符串,显示当前系统时间yyyy-MM-dd,从文本框得到的数值计算)
  3. mysql 查看 删除 日志操作总结(包括单独和主从mysql)
  4. Serenity框架官方文档翻译(1-2开始、安装和界面)
  5. kindle paperwhite折腾记
  6. 调用gluNurbsCurve绘制圆弧
  7. Android之项目推荐使用的第三方库,有助于快速开发,欢迎各位网友补充
  8. 将服务器上的myql数据库导入本地数据库
  9. 异常:The absolute uri: http://www.springframework.org/security/tags cannot be resolved in either web.xml or the jar files deployed with this application
  10. Linux LAMP环境搭建