-->
当前位置:首页 > 题库

PROGRAMMING:Planting trees

Luz5年前 (2021-05-10)题库514
A path is n meters long, and a tree is planted every other meter on both sides. How many trees can be planted?
###Input format:
Input contains multiple groups of test data, each group has only one line, including a positive integer n not greater than 1000
###Output format:
The output data is only one line, and the maximum number of trees that can be planted is output.
###Input example:
Here is a set of inputs. For example:
```in
two
```
###Output example:
The corresponding output is given here. For example:
```out
six
```







answer:If there is no answer, please comment