@jjallan/

LimegreenUselessYucker

Python

No description

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.7726707299329665","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"YT1sYW1iZGEgbixtOm4+PW0+MGFuZChuLW0pKmEobi0xLG0tMSktfm0qYShuLTEsbSlvciBtPDEKCmRlZiB0ZXN0cygpOgogICAgcHJpbnQoInswfVx0ezF9XHR7Mn0iLmZvcm1hdCgibiIsICJtIiwgIkEobixtKSIpKQogICAgZm9yIChuLG0pIGluIHppcCgoMCwxLDEsMiwyLDIsMywzLDMsMyw0LDQsNCw0LDQsNSw3LDksMTAsMTAsMTAsMTIsMTUsMTcsMjAsNDIpLCgwLDAsMSwwLDEsMiwwLDEsMiwzLDAsMSwyLDMsNCwxLDQsNSw1LDcsMTAsMiw2LDEsMTYsNDIpKToKICAgICAgICBwcmludCgiezB9XHR7MX1cdHsyfSIuZm9ybWF0KG4sIG0sIGludChhKG4sbSkpKSkKCnRlc3RzKCk="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
a=lambda n,m:n>=m>0and(n-m)*a(n-1,m-1)-~m*a(n-1,m)or m<1

def tests():
    print("{0}\t{1}\t{2}".format("n", "m", "A(n,m)"))
    for (n,m) in zip((0,1,1,2,2,2,3,3,3,3,4,4,4,4,4,5,7,9,10,10,10,12,15,17,20,42),(0,0,1,0,1,2,0,1,2,3,0,1,2,3,4,1,4,5,5,7,10,2,6,1,16,42)):
        print("{0}\t{1}\t{2}".format(n, m, int(a(n,m))))

tests()