Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
            }
        }
    }
    
  2. or download this
    tr.pl : here are all the solutions:
    1)5,2,2,2,2,2
    ...
    10)2,2,2,2,2,5
    11)5,5,5
    12)2,2,2,2,7
    
  3. or download this
            foreach(@$input){
                    # added this to make sure that we have combinations ra
    +ther than permutations:
                    # see haukex's comment below
                    next if( defined($v) && $_ < $v->{'number'} );
                    ...