wvogel日記

自分用の技術備忘録が多めです.

2011-09-03から1日間の記事一覧

CodeForces

Haskellで参加出来ると聞いて。 今日21時からコンテストがあるらしく、寄席前日にも関わらず登録して挑戦してみました。 ....だめだ。 Aしか解けなかった。 いつも思うけど、私の集中力は90分が限度。 Eは、C++使えばまだいいところまでは書けたかなと言う…

AOJ try!(2)

ttp://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0501 の問題。 toTouple :: [String]-> (String,String) toTouple (a:b:_) =(a,b) trans :: Int -> String -> Char -> String trans n cs c = case lookup [c] (maketable n cs) of Just a -> a No…