ref: https://github.com/mame/radiation-hardened-quine æ¾å°ç·ã¯ã¡ã¢ãªã¨ã©ã¼ãå¼ãèµ·ãããããã§ãããããªæ¾å°ç·ãé£ã³äº¤ãéé ·ãªç°å¢ã§ããã§ãããã¨ãªã Quine ãããã ã¨ãããã¨ã§ãããã°ã©ã å ã® 1 æåãã©ã³ãã ã«æ¶ãã¦ãå ã®ããã°ã©ã ãåºåããããªãã¨ãããã¹ã㪠Quine ãæ¸ãã¾ããã*1 ä½ãè¨ã£ã¦ãããããããªãã¨æãã¾ããããããªãµãã«åããã®ã§ãã # ã©ã³ãã ã« 1 æåæ¶ãã¹ã¯ãªãã $ cat mutate.rb src = $<.read src[rand(src.size), 1] = "" print src # rrquine.rb ããã©ã³ãã ã« 1 æåæ¶ããããã°ã©ã ãçæãã $ ruby mutate.rb rrquine.rb > broken.rb # å£ããããã°ã©ã ãå®è¡ãã (
{{#tags}}- {{label}}
{{/tags}}