mirror of
https://github.com/tiennm99/codeforces.git
synced 2026-06-09 18:14:22 +00:00
19 lines
229 B
Go
19 lines
229 B
Go
package main
|
|
|
|
import (
|
|
"bufio"
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
in := bufio.NewReader(os.Stdin)
|
|
var n, m, a int64
|
|
fmt.Fscan(in, &n, &m, &a)
|
|
|
|
tilesN := (n + a - 1) / a
|
|
tilesM := (m + a - 1) / a
|
|
|
|
fmt.Println(tilesN * tilesM)
|
|
}
|