很简单的一道数学题,如果还需要看题解应该只是语法不熟,如果你看到了这篇题解,相信你是初学者,请你加油,祝你前程似锦
#include<iostream> using namespace std; long long int n,m,a; int main(){ long long int x,y; cin>>n>>m>>a; if(n%a==0)x=n/a; if(m%a==0)y=m/a; if(n%a!=0)x=n/a+1; if(m%a!=0)y=m/a+1; cout<<x*y; return 0; }
By signing up a 追梦算法网 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 追梦算法网 universal account