ディスク 1 パズル 7 Comet のドッペルゲンガー解 64

これはディスク用に最適化されたソリューションです 1 パズル 7, として知られている “ドップレッグäガー,” 必要なサイクル数を最小限に抑えることに重点を置いています. このソリューションは 5 月に適しています。 2023 リーダーボードであり、通常は次の範囲のサイクル数を達成します。 50 に 69.

Solution for 60~69 cycles

The concept behind this approach is to utilize additional lines of code in order to minimize the processing time. For solutions that require 70 cycles or more, it is recommended to refer to earlier guides.

ヒント

  1. In order to compare two input values, it is necessary to store them. Existing guides suggest passing a value between registers before storing the next input. でも, it’s important to note that this is not the only approach.
  2. It is worth mentioning that there are multiple registers available for use.
  3. While a loop is still required, it should be a longer one that alternates between the two registers.

解決:

loop:
reg = input;
check reg = int;
jump if true: 印刷する;
int = input;
check reg = int;
jump if false: loop;
印刷する:
output = int;
jump to: loop;

Please be aware that the formatting applied by Steam may have introduced additional spaces. これにもかかわらず, the provided solution should result in a cycle count very close to 70. By employing different input data or utilizing certain tricks, such as leveraging the characteristics of the first input, it is possible to achieve a cycle count consistently below 70 with some luck.

Hint for 50~59 cycles

The approach of trading smaller code size for faster execution speed can indeed be taken to the extreme. From my current understanding, this concept involves using numerous lines of code to achieve the desired outcome.

While this approach may be perceived ashacky,” it can be effective in achieving accurate results, particularly for puzzle #7. でも, it’s important to note that the accuracy is probabilistic rather than guaranteed. それにもかかわらず, the likelihood of making mistakes decreases as the number of lines of code increases.

These ideas, along with the suggestions mentioned in previous sections, can be adapted and applied to other puzzles as well.

このガイドについて Comet 64 によって書かれた 4ut0m4t0n. 原文はこちらからご覧いただけます リンク. このガイドに関してご不明な点がございましたら, お気軽にお問い合わせください ここ.

著者について