🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.perl
Article #52001

Code Golf -- SPOJ - NOP

#52001
From: Boris
Date: Sat, 30 Oct 2010 17:09
10 lines
1449 bytes
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
Technical Details
Message-ID: <efc6a7bf-3fb7-4699-811d-955be3e7c932@f33g2000yqh.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!f33g2000yqh.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!postnews.google.com!f33g2000yqh.googlegroups.com!not-for-mail
From: Boris <007.chandru.vels@gmail.com>
Newsgroups: pl.comp.lang.perl
Subject: Code Golf  --  SPOJ - NOP
Followup-To: pl.comp.lang.perl
Date: Sat, 30 Oct 2010 10:09:55 -0700 (PDT)
Organization: http://groups.google.com
Lines: 10
Message-ID: <efc6a7bf-3fb7-4699-811d-955be3e7c932@f33g2000yqh.googlegroups.com>
NNTP-Posting-Host: 59.92.96.186
Mime-Version: 1.0
X-Trace: posting.google.com 1288458596 27097 127.0.0.1 (30 Oct 2010 17:09:56 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 30 Oct 2010 17:09:56 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: f33g2000yqh.googlegroups.com; posting-host=59.92.96.186; posting-account=Sc71AgoAAAB5d8Jk42ttpePVrOXbhcTP
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.41 Safari/534.7,gzip(gfe)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit