poj题解

POJ 开关问题 — meet in the middle

描述 有N个相同的开关,每个开关都与某些开关有着联系,每当你打开或者关闭某个开关的时候,其他的与此开关相关联的开关也会相应地发生变化,即这些相联系的开关的状态如果原来为开就变为关,如果为关就变为开。你的目标是经过若干次开关操作后使得最后N个...

POJ Mayor’s posters

描述 The citizens of Bytetown, AB, could not stand that the candidates in the mayoral election campaign have been placing ...

衫小寨 出品