Codeforces Beta Round #1 A. Theatre Square

mac2022-06-30  132

从今天开始,就要在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; }

转载于:https://www.cnblogs.com/lin375691011/p/3996655.html

最新回复(0)