2015/12/15

GCHQ的聖誕賀卡-第一關

  台灣海峽兩岸的媒體,這幾天開始報導一則關於「英國情報機構(GCHQ)推出密碼式賀卡」,邀大家一起解謎,可以參考原始題目,筆者昨天才看到新聞,於是花了一整個昨晚解開第一關,在今早要分享。


翻譯時間:
  在這個網格謎題中,每一小格不是黑色就是白色,有些黑色格子已經幫你填好作為提示。
    In this type of grid-shading puzzle, each square is either black or white. Some of the black squares have already been filled in for you.
  每個行、列都有標記一串數字,這些數字表示黑格子的連續數目,而且按順序排列。例如:標記「2 1 6」代表有3組黑格子──2格連續、1格和6格連續,且各組之間至少有一個白色格子作分隔。
    Each row or column is labelled with a string of numbers. The numbers indicate the length of all consecutive runs of black squares, and are displayed in the order that the runs appear in that line. For example, a label "2 1 6" indicates sets of two, one and six black squares, each of which will have at least one white square separating them.

  筆者認真的覺得英文很浪費版面和紙張。只要依照行列的數字,在25×25的方格中,正確的格子塗上黑色,就能破關。能全部確定的行(列)先畫出,只要某一行(列)的數字的總合,與數字的間格數相加,會等於25的,那行(列)的黑格就能確定。接著,再從數字較大的開始著手。


  如果這時候能看出,這個圖形是QR碼,就能省下不少功夫,依QR碼的特性,筆者暫且將確定是黑格的塗成咖啡色,確定是白格的塗成黃色。


  慢慢的解開,順便想像一下筆者對著小畫家思考的情境吧。



  完成啦!再把顏色換回黑白,就可以用手機掃瞄進入第二關囉。



沒有留言:

張貼留言