Add tags

Add tags to the following comment

表示が手抜きです

$ runhaskell 6382.hs < 6382.hs [('n',5),(' ',17),('&',3),('(',1),(')',1),('.',5),('=',3),('>',2),('A',1),('C',2),('D',1),('L',1),('a',5),('d',1),('e',6),('f',2),('g',3),('h',2),('i',5),('l',2),('m',4),('n',6),('o',8),('p',5),('q',2),('r',10),('s',3),('t',11),('u',1),('w',1)]

1
2
3
4
5
6
import Data.List
import Control.Arrow

main = getContents >>= print . freq

freq = map (head &&& length) . group . sort

Add tags

The input will be splited to tags with space.

Index

Feed

Other

Link

Pathtraq

loading...