Theatre Square

Description:

Theatre Square in the capital city of Berland has a rectangular shape with the sizen × mmeters. On the occasion of the city's anniversary, a decision was taken to pave the Square with square granite flagstones. Each flagstone is of the sizea × a.

What is the least number of flagstones needed to pave the Square? It's allowed to cover the surface larger than the Theatre Square, but the Square has to be covered. It's not allowed to break the flagstones. The sides of flagstones should be parallel to the sides of the Square.

Input:

The input contains three positive integer numbers in the first line:n,  manda(1 ≤  n, m, a ≤ 109).

Output:

Write the needed number of flagstones.

Sample Input:

6 6 4

Sample Output:

4


Error 1: while ,for

if... else....

Error 2: unknown

route: ceil函数(zsy提问)



优质内容筛选与推荐>>
1、Linux特殊权限:SUID、SGID、SBIT
2、android:shape的使用
3、MySQL学习笔记6:索引
4、世界最大的PHP站点 Facebook后台技术探秘
5、Solr整合中文分词组件IKAnalyzer


长按二维码向我转账

受苹果公司新规定影响,微信 iOS 版的赞赏功能被关闭,可通过二维码转账支持公众号。

    阅读
    好看
    已推荐到看一看
    你的朋友可以在“发现”-“看一看”看到你认为好看的文章。
    已取消,“好看”想法已同步删除
    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号