mirror of
https://github.com/tiennm99/codeforces.git
synced 2026-06-09 04:18:52 +00:00
feat(scala): 1a
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import scala.io.StdIn
|
||||
|
||||
object problem1A {
|
||||
def main(args: Array[String]): Unit = {
|
||||
val Array(n, m, a) = StdIn.readLine().split(" ").map(_.toLong)
|
||||
|
||||
val tilesN = (n + a - 1) / a
|
||||
val tilesM = (m + a - 1) / a
|
||||
|
||||
println(tilesN * tilesM)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user