fzu 1476 矩形个数
2024-09-06 18:47:30
注意点:精度
#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 ;
}
最新文章
- 那些年一起用过的iOS开发利器之Code Pilot
- CentOS7 安装 net-speeder 提升 VPS 网络性能
- windows-msconfig
- 遍历Map
- [ActionScript3.0] 为内建类添加方法
- ButterKnife的简单使用
- Visual Studio 2013中添加mimeType
- 详解Objective-C的meta-class
- Android4.3 蓝牙BLE初步
- div+css页面居中代码
- Oracle keep详解
- 菜鸟的jQuery源码学习笔记(前言)
- .Net软件开发面试技巧
- 【NOI2010】海拔【平面图最小割】
- 【编程技巧】NSTimer类的使用
- Zeroc Ice Slice语言使用 HelloWorld
- SpringBoot2.0应用(五):SpringBoot2.0整合MyBatis
- linux inotify 文件变化检测
- Python 操作 Excel,总有一个模块适合自己
- JDesktopPane JInternalFrames