Test

Ruby code:

require 'rational'

N = 12000000

RE = /000|111|222|333|444|555|666|777|888|999/

p (1..N).reject{|d| d.to_s[RE] }.map{|d| 1.0/d }.inject(0, :+).to_f

XML code:

 <a>
    <b c="d"/>
    <!-- comment -->
 </a>

Металл!

Comments (3)