Codeforces 1A Theatre Square

Posted cmlhc

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Codeforces 1A Theatre Square相关的知识,希望对你有一定的参考价值。

技术分享图片

题目链接

http://codeforces.com/problemset/problem/1/A

#include<iostream>

using namespace std;

int main()
{
    long long n,m,a;
    cin>>n>>m>>a;
    long long a1,a2;
    if(n%a!=0)
    {
        a1=n/a+1;
    }else
    {
        a1=n/a;
    }

    if(m%a!=0)
    {
        a2=m/a+1;
    }else
    {
        a2=m/a;
    }
    long long sum;
    sum=a1*a2;

    cout<<sum;


    return 0;
}

 

以上是关于Codeforces 1A Theatre Square的主要内容,如果未能解决你的问题,请参考以下文章

Codeforces Beta Round #1 A. Theatre Square

Codeforces Beta Round #1 A. Theatre Square 题解

CodeForces - 131C The World is a Theatre(组合数)

Educational Codeforces Round 88 (Rated for Div. 2) B. New Theatre Square

Educational Codeforces Round 88 (Rated for Div. 2) B. New Theatre Square

Educational Codeforces Round 88 (Rated for Div. 2) BNew Theatre Square