[Init] Solved solutions

This commit is contained in:
2023-03-02 20:58:03 +07:00
parent 51f667ac81
commit 20542601dd
131 changed files with 4148 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
package com.company;
import java.util.Scanner;
public class Main {
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 r = n / a, c = m / a;
if (n % a != 0)
{
r++;
}
if (m % a != 0)
{
c++;
}
long s = r * c;
System.out.println(s);
}
}