Friday 5 June 2020

Codeforces-1A(Theatre Square) Solution in java

Program

import java.util.Scanner;
public class cp2
{
    public static void main(String args[ ])
    {

        Scanner sc = new Scanner(System.in);

        double l = sc.nextInt();
        double b = sc.nextInt();
        double a = sc.nextInt();
       
        System.out.println((long)(Math.ceil(l/a)*Math.ceil(b/a)));
    }
}

No comments:

Post a Comment