August 3, 2008

(5) Comments

ZJU ACM #1350(The Drunk Jailer)

枫叶

,

      前几天在北极冰仔的博客上看到了一题ACM - the drunk jailer, 突然有兴趣玩玩。 我已经从大学毕业之后就没有再碰过C语言这么个玩意了而已了(除了上次用C语言写了一个google calendar的东东外)

      题目如下:

A certain prison contains a long hall of n cells, each right next to each other. Each cell has a prisoner in it, and each cell is locked.

阅读全文——共3721字