兩種解決方案 Richard just finished building his new house. Now the only thing the house misses is a cute little wooden fence. He had no idea how to make a wooden fence, so he decided to order one. Somehow he got his hands on the ACME Fence Catalogue 2002, the Ultimate resource on cute little wooden fences. After reading its preface he already knew, what makes a little wooden fence cute.
A wooden fence consists of N wooden planks, placed vertically in a row next to each other. A fence looks cute if and only if the following conditions are met:
?The planks have different lengths, namely 1, 2, . . . , N plank length units.
?Each plank with two neighbors is either larger than each of its neighbors or smaller than each of them. (Note that this makes the top of the fence alternately rise and fall.)
標簽:
house
the
finished
building
上傳時間:
2014-01-26
上傳用戶:541657925
Fun. We (your authors) wanted a word to describe our Ultimate goal for this book, as well as a word
we hope you (our reader) will use to describe it, and that’s the one we chose. There are others goals,
of course, but in the end, when you’ve finished the book, we’re hoping you’ll have enjoyed the
activities described in these pages.
Many books use the Introduction to explain exactly what the book is about, what the reader will
learn, what the reader needs (a skill or maybe an item or piece of software), and what the reader
will be left with when that last page is completed. And this Introduction will do those things, but …
hopefully it’ll make you excited to get started.
標簽:
Adventures
Arduino
Station
Escape
Gemini
from
上傳時間:
2020-06-09
上傳用戶:shancjb