Theater Square Visual

JavaScript Solution to “Theater Square” Problem

Problem 1A as presented on CodeForces: Theatre Square in the capital city of Berland has a rectangular shape with the size n × m meters. On the occasion of the city’s anniversary, a decision was taken to pave the Square with square granite flagstones. Each flagstone is of the size a × a. What is the least number of…