Article View: pl.comp.lang.perl
Article #52002Re: Code Golf -- SPOJ - NOP
From: Maciej Misiak
Date: Sun, 31 Oct 2010 20:17
Date: Sun, 31 Oct 2010 20:17
17 lines
1523 bytes
1523 bytes
W dniu 2010-10-30 19:09, Boris pisze: > Hi everyone, I found a very interesting problem in spoj. > > You can refer the problem description here: http://www.spoj.pl/problems/NOP/ > > I somehow reduced my solution to 42 bytes. But the shortest solution > is 39 bytes (By Piotr Fusik ) > > Here is my solution. Any hints on further reduction ? > > $n+=~y///c&3for<>=~/(.*?)[A-Z]/g;print$n-3 Well, what is allowed? Command line switches? How is the length of the program counted? -- grizzley
Technical Details
Message-ID:
<iakisu$4ug$1@news.onet.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mailReferences:
<efc6a7bf-3fb7-4699-811d-955be3e7c932@f33g2000yqh.googlegroups.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail From: Maciej Misiak <grizzley@poczta.onet.pl> Newsgroups: pl.comp.lang.perl Subject: Re: Code Golf -- SPOJ - NOP Date: Sun, 31 Oct 2010 21:17:33 +0100 Organization: http://onet.pl Lines: 17 Message-ID: <iakisu$4ug$1@news.onet.pl> References: <efc6a7bf-3fb7-4699-811d-955be3e7c932@f33g2000yqh.googlegroups.com> NNTP-Posting-Host: ip-62-69-199-251.globalconnect.pl Mime-Version: 1.0 X-Trace: news.onet.pl 1288556255 5072 62.69.199.251 (31 Oct 2010 20:17:35 GMT) X-Complaints-To: niusy@onet.pl NNTP-Posting-Date: Sun, 31 Oct 2010 20:17:35 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.2.11) Gecko/20101013 Thunderbird/3.1.5 In-Reply-To: <efc6a7bf-3fb7-4699-811d-955be3e7c932@f33g2000yqh.googlegroups.com> X-Antivirus: avast! (VPS 101031-0, 2010-10-31), Outbound message X-Antivirus-Status: Clean Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit