## DMOPC '14 Contest 1 P2 - Tiles

View as PDF

Points: 3 (partial)
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type
Allowed languages
Ada, Assembly, Awk, Brain****, C, C#, C++, COBOL, CommonLisp, D, Dart, F#, Forth, Fortran, Go, Groovy, Haskell, Intercal, Java, JS, Kotlin, Lisp, Lua, Nim, ObjC, OCaml, Octave, Pascal, Perl, PHP, Pike, Prolog, Python, Racket, Ruby, Rust, Scala, Scheme, Sed, Swift, TCL, Text, Turing, VB, Zig

One day Mr. Sidhu's students are talking too much (as usual) and so he decides to give them a task that might quiet them down for a bit.

He tells them the width and length of the classroom (first line of input) as well as the side length of a standard square tile (second line of input). None of these dimensions will be less than or greater than .

You may assume that they are of the same unit. What is the maximum number of entire tiles that can fit within the classroom's surface? The tiles can only be axially aligned (sides parallel to the sides of the room).

#### Sample Input

10 5
3

#### Sample Output

3