?? genetic.hs.txt
字號:
-- Problem Genetic Code-- Algorithm Constructive-- Runtime O(n)-- Author Walter Guttmann-- Date 12.03.2003main :: IO ()main = do input <- readFile "genetic.in" mapM_ (putStrLn . flip take thue) $ takeWhile (>0) $ map read $ words inputthue :: Stringthue = head $ dropWhile tooShort $ iterate (concat . map replace) "N" where tooShort xs = length xs < 5000 replace 'N' = "OP" replace 'O' = "ONP" replace 'P' = "N"
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -