タグ

ブックマーク / ideone.com (3)

  • Ideone.com

    aW1wb3J0IENvbnRyb2wuQXBwbGljYXRpdmUKaW1wb3J0IERhdGEuTWF5YmUKaW1wb3J0IERhdGEuTW9ub2lkCgpmaXp6ID0gY3ljbGUgW05vdGhpbmcsIE5vdGhpbmcsIEp1c3QgIkZpenoiXQpidXp6ID0gY3ljbGUgW05vdGhpbmcsIE5vdGhpbmcsIE5vdGhpbmcsIE5vdGhpbmcsIEp1c3QgIkJ1enoiXQpudW1zID0gbWFwIChKdXN0IC4gc2hvdykgWzEuLjEwMF0KCig8PikgPSBtYXBwZW5kIC0tIGZvciBnaGMgPCA3LjQKCm1haW4gOjogSU8gKCkKbWFpbiA9CiAgbWFwTV8gcHV0U3RyTG4KICAkIGNhdE1heWJlcwogICQgemlw

    udzura
    udzura 2012/08/09
    ちょうかっこいいな
  • Ideone.com

    /* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Ideone { public static void main (String[] args) throws java.lang.Exception { // your code goes here } }

    udzura
    udzura 2012/01/13
    使いどこあるのかしら。すごそうだけど
  • Ideone.com | A59S5

    {- http://nagoyascala.yoshihiro503.cloudbees.net/bbs/thread/114001;jsessionid=927E0D207B7C3B4A580C8349C3444E4E?F999914930778MPM=_ -} import Control.Monad import Data.List main :: IO () main = print $ solve 5 solve :: Int -> [String] solve n = filter ("AAG" `isInfixOf`) $ replicateM n "ATCG" ey0gaHR0cDovL25hZ295YXNjYWxhLnlvc2hpaGlybzUwMy5jbG91ZGJlZXMubmV0L2Jicy90aHJlYWQvMTE0MDAxO2pzZXNzaW9uaWQ9OTI3

    udzura
    udzura 2012/01/10
    replicateM n "ATCG" って文字列がモナドだから成り立つのか
  • 1