Codeforces Beta Round #1
来源:互联网 发布:如何找出excel重复数据 编辑:程序博客网 时间:2024/05/22 00:54
一题用数学知识来解答的水题······计算广场的长和宽各需要多少砖····简单的数学问题····还要注意铺完的地方要与边平行!!
#include<iostream>#include<iomanip>#include<string>#include<stdio.h>using namespace std;int main( ){ long long n,m,a,s1,s2,sum; while(cin>>n>>m>>a) { if(a>=n&&a>=m) sum=1; else { s1=n/a; if(n%a!=0) s1=s1+1; s2=m/a; if(m%a!=0) s2=s2+1; sum=s1*s2; } cout<<sum<<endl; } return 0;}
- Codeforces Beta Round #1
- Codeforces Beta Round #1
- Codeforces Beta Round #1
- Codeforces Beta Round #1
- Codeforces Beta Round #1
- Codeforces Beta Round #1
- Codeforces Beta Round #1
- Codeforces Beta Round #1
- Codeforces Beta Round #1
- Codeforces Beta Round #1 练习
- Codeforces Beta Round #1 ABC
- Codeforces Beta Round #1(A,B)
- Codeforces Beta Round #83 (Div. 1 Only)
- Codeforces Beta Round #1 A B C
- Codeforces Beta Round #1 A题
- Codeforces Beta Round #1 A B C
- Codeforces Beta Round #1 A - Theatre Square
- Codeforces Beta Round #1 A. Theatre Square
- 内存对齐的规则以及作用
- 无刷新验证用户名是否存在
- java 接口
- jQuery基础 - 如何添加/移除CSS类
- log4net 在.net CompactFramework 2.0中的使用
- Codeforces Beta Round #1
- 用SQL语句写分页
- 天气预报API
- WebService应用技术
- C语言和设计模式(责任链模式)
- SAS dictionary工具
- sizeof()与 数组长度获取
- libxml C解析xml文档
- 自动调整软键盘