Roy has just moved into a new apartment. Well, actually the apartment itself is not very new, even dating back to the days before people had electricity in their houses. Because of this, Roy's apartment has only one single wall outlet, so Roy can only power one of his electrical appliances at a time.
Roy likes to watch TV as he works on his computer, and to listen to his HiFi system (on high volume) while he vacuums, so using just the single outlet is not an option. Actually, he wants to have all his appliances connected to a powered outlet, all the time. The answer, of course, is power strips, and Roy has some old ones that he used in his old apartment. However, that apartment had many more wall outlets, so he is not sure whether his power strips will provide him with enough outlets now.
Your task is to help Roy compute how many appliances he can provide with electricity, given a set of power strips. Note that without any power strips, Roy can power one single appliance through the wall outlet. Also, remember that a power strip has to be powered itself to be of any use.
罗伊喜欢看电视,因为他在他的电脑作品,并听取他的音响系统(高容量),而他的真空,所以只用单一的出口是不是一种选择。其实,他想要他的所有连接到通电的插座,所有的时间用具。答案当然是电源板,罗伊也有一些他在使用的旧的旧公寓。不过,有了更多的公寓墙壁插座,所以他不知道他是否配电盘将提供足够的网点他了。
你的任务是帮助罗伊计算有多少设备,他可以提供电力,给定电源板集。请注意,没有任何电源板,罗伊可以穿过墙壁电源插座一个单一的设备。此外,请记住,一个电源板供电的,必须自己来有什么用处。
罗伊喜欢看电视,因为他的作品,他的电脑,并且要听他的高品质的系统(高体积)当他真空吸尘器、所以仅用单一出口不是一个选择。事实上,他想他所有电器连接到一个动力电源插座,。当然,答案就是力量条,和罗伊有一些旧的知道他曾在他的旧公寓。然而,那套公寓里拥有很多很多的墙处,所以他不知道他的力量将为他提供足够将出口了。
你的任务是帮助罗伊计算多少电器他能提供电力、给出一组电力隔间。注意,就没有力度条,罗伊能电力一个单独的电器通过墙上的电源插座上。同样的,你应该记住,电源供电带钢自己是任何使用。