1 solutions

  • 0
    @ 2022-3-20 15:00:34

    很简单的一道数学题,如果还需要看题解应该只是语法不熟,如果你看到了这篇题解,相信你是初学者,请你加油,祝你前程似锦

    #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;
    }
    
    • 1

    Information

    ID
    1853
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    7
    Tags
    # Submissions
    63
    Accepted
    16
    Uploaded By