[Rio-pm] [Golf] Fatorial

Fernando Oliveira fernandocorrea em gmail.com
Segunda Fevereiro 1 09:59:36 PST 2010


só como piada:

perl -E'@a=1..<>;for$num(@a){$i++;map{push em a,(0)x($num-2)}@a}say scalar em a'

Just another Perl Hacker,
Fernando (SmokeMachine)
http://perl-e.org
Sent from Rio De Janeiro, RJ, Brazil


2010/2/1 Daniel de Oliveira Mantovani <daniel.oliveira.mantovani em gmail.com>

> Li as regras:
> http://www.xs4all.nl/~thospel/golf/rules.html<http://www.xs4all.nl/%7Ethospel/golf/rules.html>
>
> Agora não vai mais ter erro :)
>
> 2010/2/1 Fernando Oliveira <fernandocorrea em gmail.com>:
> > Tá errado.
> >
> > Just another Perl Hacker,
> > Fernando (SmokeMachine)
> > http://perl-e.org
> > Sent from Rio De Janeiro, RJ, Brazil
> >
> >
> > 2010/2/1 Daniel de Oliveira Mantovani <
> daniel.oliveira.mantovani em gmail.com>
> >>
> >> perl -E'say$.*=$_ for$...<>'
> >>
> >> :)
> >>
> >> 2010/2/1 Fernando Oliveira <fernandocorrea em gmail.com>:
> >> > -1
> >> >
> >> > perl -E'map$.*=$_,1..<>;say$.'
> >> >
> >> > Just another Perl Hacker,
> >> > Fernando (SmokeMachine)
> >> > http://perl-e.org
> >> > Sent from Rio De Janeiro, RJ, Brazil
> >> >
> >> >
> >> > 2010/2/1 Alexei Znamensky <russoz em gmail.com>
> >> >>
> >> >> E mais um na mesma marca:
> >> >>
> >> >> perl -E'map{$.*=$_}1..<>;say$.'
> >> >>
> >> >> On Mon, Feb 1, 2010 at 12:15, Stefano Rodighiero
> >> >> <stefano.rodighiero em gmail.com> wrote:
> >> >>>
> >> >>> 2010/2/1 Fernando Oliveira <fernandocorrea em gmail.com>:
> >> >>>
> >> >>> > Odeio fazer isso, mas vc me obrigou... vc esqueceu um espaço...
> >> >>> >
> >> >>> > perl -E'$.*=$_ for 1..<>;say$.'
> >> >>>
> >> >>> you're perfectly right (sorry for keeping talking in English,
> >> >>> I can read PT to a certain extent, but... não falo :/ )
> >> >>>
> >> >>> s.
> >> >>>
> >> >>> --
> >> >>> www.stefanorodighiero.net
> >> >>> _______________________________________________
> >> >>> Rio-pm mailing list
> >> >>> Rio-pm em pm.org
> >> >>> http://mail.pm.org/mailman/listinfo/rio-pm
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> Alexei Znamensky [russoz_gmail_com] [russoz.wordpress.com]
> >> >> [www.flickr.com/photos/alexeiz]
> >> >> "Though we live in trying times, we're the ones who have to try"
> >> >>
> >> >> _______________________________________________
> >> >> Rio-pm mailing list
> >> >> Rio-pm em pm.org
> >> >> http://mail.pm.org/mailman/listinfo/rio-pm
> >> >
> >> >
> >> > _______________________________________________
> >> > Rio-pm mailing list
> >> > Rio-pm em pm.org
> >> > http://mail.pm.org/mailman/listinfo/rio-pm
> >> >
> >>
> >>
> >>
> >> --
> >> "If you’ve never written anything thoughtful, then you’ve never had
> >> any difficult, important, or interesting thoughts. That’s the secret:
> >> people who don’t write, are people who don’t think."
> >> _______________________________________________
> >> Rio-pm mailing list
> >> Rio-pm em pm.org
> >> http://mail.pm.org/mailman/listinfo/rio-pm
> >
> >
> > _______________________________________________
> > Rio-pm mailing list
> > Rio-pm em pm.org
> > http://mail.pm.org/mailman/listinfo/rio-pm
> >
>
>
>
> --
> "If you’ve never written anything thoughtful, then you’ve never had
> any difficult, important, or interesting thoughts. That’s the secret:
> people who don’t write, are people who don’t think."
> _______________________________________________
> Rio-pm mailing list
> Rio-pm em pm.org
> http://mail.pm.org/mailman/listinfo/rio-pm
>
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://mail.pm.org/pipermail/rio-pm/attachments/20100201/1978b14c/attachment.html>


Mais detalhes sobre a lista de discussão Rio-pm