Reading the Input Data

We can see from the explanation that the input data will be only one row which will contain an integer in the interval [3 … 1000]. Therefore we will use a variable of type int.

After we have declared and initialized the input data we must divide the fort into three parts:

  • roof
  • body
  • base

results matching ""

    No results matching ""