[Haskell-beginners] Question about problem "KAMIL" from SPOJ

Nadav Chernin nadavchernin at gmail.com
Thu Jul 18 17:32:10 CEST 2013

I'm trying to solve problem "KAMIL" on SPOJ site
The target is to write as small as possible code.

My first solution was:


This code = 70 bytes and it accepted on SPOJ

My second solution was:


This code = 60 bytes, but i get Run-Time error on SPOJ

I don't understand how this code can create RTE?

Please help me

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20130718/56cca73a/attachment.htm>

More information about the Beginners mailing list