Please read the new rule regarding the restriction on the use of AI tools. ×

Threatre Square

Revision en1, by rohitk_123, 2020-03-23 07:57:22

import java.util.Scanner;

public class ThreatreSquare1 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextInt(); long m = sc.nextInt(); long a = sc.nextInt();

long count = 0;



    long x= m / a;
    if(m % a != 0){
        x += 1;
    }

    count = n / a;
    if(n%a != 0){
        count+=1;
    }



    System.out.println(count * x);


}

}

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English rohitk_123 2020-03-23 07:57:22 519 Initial revision (published)