Codeforces Beta Round #1 A. Theatre Square
来源:互联网 发布:jquery获得表单数据 编辑:程序博客网 时间:2024/06/04 18:40
题意:n*m的一块地方,铺a*a的砖,边沿可以超出但是要保证铺满,求最少多少块砖,直接看代码
#include<stdio.h>#include<algorithm>using namespace std;int main(){ long long int n,m,a,ans,x,y; scanf("%lld%lld%lld",&n,&m,&a); ans=0; if(n%a!=0) x=n/a+1; else x=n/a; if(m%a!=0) y=m/a+1; else y=m/a; ans=x*y; printf("%lld\n",ans);}
0 0
- Codeforces Beta Round #1 A - Theatre Square
- Codeforces Beta Round #1 A. Theatre Square
- Codeforces Beta Round #1 A. Theatre Square
- Codeforces Beta Round #1 A Theatre Square
- Codeforces Beta Round #1 A. Theatre Square
- Codeforces Beta Round #1 A. Theatre Square
- Codeforces Beta Round #1 A. Theatre Square
- Codeforces Beta Round #1 / 1A Theatre Square (简单数学)
- Codeforces Beta Round #1 Theatre Square
- Codeforces Round #1A Theatre Square
- CodeForces 1A Theatre Square(math)——Codeforces Beta Round #1
- CodeForces 1A Theatre Square
- Codeforces 1A. Theatre Square
- codeforces 1A-Theatre Square
- 【CodeForces】[1A]Theatre Square
- CodeForces 1A Theatre Square
- CodeForces 1A Theatre Square
- CodeForces 1A Theatre Square
- VirtualBox的网络配置,Host Only+NAT方式
- 【积淀】封装一个简单的倒计时组件
- linux =>Ubuntu 14.04 安装 Sublime Text 3
- vs auto build
- Leetcode200: Super Ugly Number
- Codeforces Beta Round #1 A. Theatre Square
- Activiti进阶(四)——流程变量的设置和获取
- copy
- 抽象基类和纯虚函数
- 绘图 - 8
- Bmob之个人资料设置(一)
- 17、osgText::Text
- BZOJ 1001 (UVa1376, LA3661 ) - 平面图最大流(对偶图 -> 最短路)
- struts2-OGNL和类型转换(structs 自动数据表单获取)