大佬们为啥我样例过了但是会WA啊
查看原帖
大佬们为啥我样例过了但是会WA啊
314470
Henderson楼主2021/7/26 20:05

以下附代码

#include <bits/stdc++.h>
using namespace std;

int main()
{
	long a,n,m,square,brick,lengh=0,wide=0;
	cin>>n>>m>>a;
	square=n*m;
	brick=a*a;
	lengh=n/a;
	wide=m/a;
	if(n%a!=0)
	   lengh++;
	if(m%a!=0)
	   wide++;
	cout<<lengh*wide; 
	return 0;
}
2021/7/26 20:05
加载中...