Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: The golf course looks great, my swing feels good, I like my chances (Part II)

by eyepopslikeamosquito (Canon)
on May 27, 2009 at 11:21 UTC ( #766382=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    x=[10**(205558%ord(c)%7)%9995for c in raw_input()]
    print sum(n-p%n*2for p,n in zip([0]+x,x))
    
  2. or download this
    t=p=0
    for r in raw_input():n=10**(205558%ord(r)%7)%9995;t+=n-2*p%n;p=n
    print t
    
  3. or download this
    t=0
    for r in raw_input():n=10**(205558%ord(r)%7)%9995;t+=n-2*t%n
    print t
    
  4. or download this
    use List::Util 'reduce';
    print reduce{$a+$b-2*$a%$b}map{10**(19&654115/ord)%1645}<>=~/./g
    
  5. or download this
    print reduce(lambda t,n:t+n-2*t%n,(10**(19&654115//ord(r))%1645for r i
    +n raw_input()))
    
  6. or download this
    p gets.chomp.bytes.map{|c|10**(205558%c%7)%9995}.reduce(0){|t,n|t+n-t%
    +n*2}
    # or:
    p gets.chomp.bytes.reduce(0){|t,c|t+(n=10**(205558%c%7)%9995)-t%n*2}
    
  7. or download this
    # Perl:
    reduce{$a+$b-$a%$b*2}map{10**(7&69303333/ord)%9995}<>=~/./g
    # Python:
    reduce(lambda t,n:t+n-t%n*2,(10**(7&69303333//ord(r))%1999for r in raw
    +_input()))
    
  8. or download this
    t=0;t+=N-t%N*2while 0<N=10**(494254%getc/9)%4999/2;p t
    $.+=N-~-$.%N*2while 1<N=10**(494254%getc/9)%4999;p$./2
    
  9. or download this
    n=1;$.+=n/2-n%n=10**(494254%C/9)%4999while C=getc;p$.
    
  10. or download this
    while 0<N=10**(494254%getc/9)%4999/2
    
  11. or download this
    while N=10**(494254%getc/9)%4999/2
    
  12. or download this
    n=t=1;$<.bytes{|c|t+=n/2-n%n=10**(494254%c/9)%4999};p t
    
  13. or download this
    n=s=0;roman.bytes{|c|s+=n-2*n%n=10**(205558%c%7)%9995};s+n
    
  14. or download this
    s=0;roman.bytes{|c|s+=(n=10**(205558%c%7)%9995)-s%n*2};s
    
  15. or download this
    a=0
    for e in raw_input():v=10**(84179%ord(e)%5)>>(e in'VLD');a+=v-2*a%v
    print a
    
  16. or download this
    10**(84179%ord(e)%5)>>(e in'VLD')
    
  17. or download this
    1 . E.(3^77%ord)%7>>y/VLD//
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://766382]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2014-04-19 02:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (475 votes), past polls