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

PROGRAMMING:One step, two steps

Luz5年前 (2021-05-10)题库401
You have to cross the river, but there is no bridge. There is only a stone road made of a row of stones. You can only cross one stone or two stones at a time. How many ways can you go to the nth stone.
###Input format:
Positive integer n
###Output format:
The number of possibilities
###Input sample 1:
Here is a set of inputs. For example:
```in
one
```
###Output sample 1:
The corresponding output is given here. For example:
```out
one
```
###Input sample 2:
Here is a set of inputs. For example:
```in
two
```
###Output sample 2:
The corresponding output is given here. For example:
```out
two
```
###Input sample 1:
Here is a set of inputs. For example:
```in
eight
```
###Output sample 1:
The corresponding output is given here. For example:
```out
thirty-four
```







answer:If there is no answer, please comment