Article View: pl.comp.lang.javascript
Article #10243Re: szkolka
From: Bogdan Błaszczak
Date: Mon, 20 Jan 2003 15:40
Date: Mon, 20 Jan 2003 15:40
28 lines
1985 bytes
1985 bytes
Użytkownik "Vax" <vax@ircx.pl> napisał w wiadomości
news:b0gojo$kcq$1@news.tpi.pl...
>
> Użytkownik "Vax" <vax@ircx.pl> napisał w wiadomości
> news:b0gnmf$bqs$1@news.tpi.pl...
>
> errata - literowka, zamiast "&2" winno byc ">2"
>
> function rome(N,s,b,a,o){
> for(s=b='',a=5;N;b++,a=7-a)
> for(o=N%a,N=N/a^0;o--;)s='IVXLCDM'.charAt(o>2?b+N-(N&=~1)+(o=1):b)+s
> return s
> }
dobrze sie bawicie cooo? :)))
urywam jeden znak poprzez xorowa wersje przelacznika
function rome(N,s,b,a,o){
for(s=b='',a=5;N;b++,a^=7)
for(o=N%a,N=N/a^0;o--;)s='IVXLCDM'.charAt(o>2?b+N-(N&=~1)+(o=1):b)+s
return s
}
BlaTek
ps. i tak powstaje cos czego nikt pozniej nie rozumie, a jednak dziala
:)))))
Technical Details
Message-ID:
<b0h54d$no9$1@news.tpi.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!news.ipartners.pl!newsfeed.gazeta.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mailReferences:
<b06bao$cp7$1@news.tpi.pl> <b07bqt$2d3$1@news.tpi.pl> <b08r07$62k$1@news.tpi.pl> <b09j6g$od1$1@news.tpi.pl> <b0b9tq$bhe$1@news.tpi.pl> <b0c04c$bfo$1@news.tpi.pl> <b0eg1c$ih5$1@news.tpi.pl> <b0f3d9$7qu$1@news.tpi.pl> <b0gb50$asn$1@news.tpi.pl> <b0gcr4$sk7$1@news.tpi.pl> <b0gdgm$6m9$1@news.tpi.pl> <b0gg9m$38r$1@news.tpi.pl> <b0gnmf$bqs$1@news.tpi.pl> <b0gojo$kcq$1@news.tpi.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!news.ipartners.pl!newsfeed.gazeta.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail From: Bogdan Błaszczak <blatek@twentyfive[toDigits].pl> Newsgroups: pl.comp.lang.javascript Subject: Re: szkolka Date: Mon, 20 Jan 2003 16:40:31 +0100 Organization: tp.internet - http://www.tpi.pl/ Lines: 30 Message-ID: <b0h54d$no9$1@news.tpi.pl> References: <b06bao$cp7$1@news.tpi.pl> <b07bqt$2d3$1@news.tpi.pl> <b08r07$62k$1@news.tpi.pl> <b09j6g$od1$1@news.tpi.pl> <b0b9tq$bhe$1@news.tpi.pl> <b0c04c$bfo$1@news.tpi.pl> <b0eg1c$ih5$1@news.tpi.pl> <b0f3d9$7qu$1@news.tpi.pl> <b0gb50$asn$1@news.tpi.pl> <b0gcr4$sk7$1@news.tpi.pl> <b0gdgm$6m9$1@news.tpi.pl> <b0gg9m$38r$1@news.tpi.pl> <b0gnmf$bqs$1@news.tpi.pl> <b0gojo$kcq$1@news.tpi.pl> NNTP-Posting-Host: pb80.walbrzych.cvx.ppp.tpnet.pl X-Trace: news.tpi.pl 1043077070 24329 217.99.236.80 (20 Jan 2003 15:37:50 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Mon, 20 Jan 2003 15:37:50 +0000 (UTC) X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit