|
|||
NetworksGiven three “equidistant orthogonal networks” of dimensions n × n, m × m, and p × p (see the figure below for a 5 × 5 network; all horizontal and vertical edges are of 1 unit length; all diagonal edges are of √2 length), we are interested in the following three subnetworks:
Only the number of edges of each subnetwork has to be printed to the standard output.
Input SpecificationThe input contains three numbers: n, m, and p, separated by a space (2 ≤ n, m, p ≤ 10 000). Output SpecificationPrint three numbers to the standard output, representing the number of edges for each network (separated by a space). Sample Input
Output for Sample Input
|
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |