码迷,mamicode.com
首页 > 其他好文 > 详细

Codeforces Beta Round #1 A. Theatre Square

时间:2017-07-23 11:22:29      阅读:130      评论:0      收藏:0      [点我收藏+]

标签:std   tracking   return   pre   blog   snippet   code   任务   codeforce   

从今天開始。就要在Codeforces里有一个新的開始了,貌似任务非常重的说~~


Codeforces专题我将会记录全部通过的题目,事实上仅仅要通过的题目都是水题啊!。


题目大意:

依照要求计算须要多少flagstone.



以下是代码:

#include <stdio.h>
int main()
{
    long long n,m,a,r,c;
    scanf("%I64d%I64d%I64d",&n,&m,&a);
    r=n/a;
    if(n%a)r++;
    c=m/a;
    if(m%a)c++;
    printf("%I64d\n",r*c);
    return 0;
}


Codeforces Beta Round #1 A. Theatre Square

标签:std   tracking   return   pre   blog   snippet   code   任务   codeforce   

原文地址:http://www.cnblogs.com/yfceshi/p/7223853.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!