パスワードを忘れた? アカウント作成
この議論は賞味期限が切れたので、アーカイブ化されています。 新たにコメントを付けることはできません。

The Underhanded C Contest 結果発表」記事へのコメント

  • by Anonymous Coward
    配列の初期値かな
    • Re:ぱっと見 (スコア:3, 参考になる)

      by Anonymous Coward
      matrixは条件付きで初期化を拒否してるようですね。
      四角い部屋を丸く拭くなという教訓のようです。
      • Re:ぱっと見 (スコア:2, 参考になる)

        by wabix (3594) on 2005年09月26日 14時48分 (#804726) ホームページ
        引用:
        | matrixは条件付きで初期化を拒否してるようですね。
        | 四角い部屋を丸く拭くなという教訓のようです。

        このコメントでやっとわかりました。
        こんな短い&定数の少ないコードで良くやるなあ!(感嘆

        で、もっと詳しい説明が natori.zip 中の、
        decoder-and-spoiler/README.txt ですね。

        | The output fluctuation is caused by the uninitialized convolution
        | matrix. Most elements of the matrix are newly assigned, but some of the
        | outer elements are not assigned. The unassigned part contains most of
        | the return values from stat(WORKFILE) call. Since the WORKFILE is
        | newly generated for each run, the return from the stat call differs
        | for each run (differs in last access time, last modified time, i-node
        | number, etc.). This causes some subtle changes in the output images.

        なるほど。これなら、毎回実行して、毎回違う値を埋め込めそう。
        画像処理やノイズ除去の仕組みは無知でわからないのですが、
        私にはこれだけでも十分に目からウロコでした。
        親コメント

皆さんもソースを読むときに、行と行の間を読むような気持ちで見てほしい -- あるハッカー

処理中...