注意点:精度

#include<iostream>
using namespace std;
typedef long long ll;
int main() {
int a,b;
ll cnt=;
while(cin>>a>>b) {
cnt=;
cnt=(1+a)*a*(1+b)*b/4; //(1+a)*a*(1+b)*b/ a,b都为整型 需要强制转化为ll 或将a,b定义为ll
cout<<cnt<<endl;
}
return ;
}

最新文章

  1. 那些年一起用过的iOS开发利器之Code Pilot
  2. CentOS7 安装 net-speeder 提升 VPS 网络性能
  3. windows-msconfig
  4. 遍历Map
  5. [ActionScript3.0] 为内建类添加方法
  6. ButterKnife的简单使用
  7. Visual Studio 2013中添加mimeType
  8. 详解Objective-C的meta-class
  9. Android4.3 蓝牙BLE初步
  10. div+css页面居中代码
  11. Oracle keep详解
  12. 菜鸟的jQuery源码学习笔记(前言)
  13. .Net软件开发面试技巧
  14. 【NOI2010】海拔【平面图最小割】
  15. 【编程技巧】NSTimer类的使用
  16. Zeroc Ice Slice语言使用 HelloWorld
  17. SpringBoot2.0应用(五):SpringBoot2.0整合MyBatis
  18. linux inotify 文件变化检测
  19. Python 操作 Excel,总有一个模块适合自己
  20. JDesktopPane JInternalFrames

热门文章

  1. ArcObject IFeature set_Shape()和Delete()报错
  2. swift - 全屏pop手势
  3. mac Xvim 语法高亮
  4. 如何使用eclipse创建Maven工程及其子模块
  5. cmake实战第一篇:初试 cmake
  6. 请求SQL数据是存在&lt;null&gt;,的解决方法
  7. iOS Sprite Kit教程之编敲代码以及Xcode的介绍
  8. python 基础 9.4 游标
  9. poj2421
  10. python的协程和_IO操作