Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: How to generate restricted partitions of an integer

by tye (Sage)
on Nov 12, 2004 at 09:11 UTC ( [id://407313]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
            } \@cnt, \@size;
    }
    print "($tries tries)\n";
    
  2. or download this
    > perl change.pl 103 100 33 10 3 | more
    1) 1*10 + 31*3
    ...
    9) 1*100 + 1*3
    (56 tries)
    >
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-24 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found