Campus 校内校外

文章目录
  1. 1. 规则
  2. 2. 参考资料

本题型由Riad Khanmagomedov所设计,第一次出现在2009年4月的IPST中。

规则

Campus例题,作者:Serkan Yürekli

沿着表格线画一条回路,组成回路的线段不可交叉或者重叠。并且在空格内填上数字1-4,使得每一行、每一列中数字1-4各出现2次。每一个数字代表这一格所矗立的楼房高度。每一行、每一列中都正好有四格处于回路内部,且出现数字1-4各一次。最终被回路包围的部分称为校园内(例题中以灰色标示),余下部分称为校园外。在周围灰色区域内的提示数表示从这个角度以水平或者垂直方向往盘面内看,可以看到校园的楼房个数(高楼会挡住底楼使其不被看到);最外圈的提示数表示从这个角度以水平或者垂直方向往盘面内看,可以看到校园的楼房个数。

① Draw a single closed loop following the grid lines without touching itself even diagonally. Fill the grid with digits 1 to 4, so that each digit appears exactly twice in each row/column. Each digit represents a building with the height of that digit itself.
② Each row and column should have exactly four cells inside the loop, containing digits 1 to 4 exactly once.
③ Clues on the grey line represents the number of buildings INSIDE the loop that can be seen from the corresponding direction (outside buildings are ignored). Clues on the white line represents the number of buildings OUTSIDE the loop that can be seen from the corresponding direction (inside buildings are ignored).

参考资料