📖Problem

🔍Intuition

if a <= 0 or b <= 0 or c <= 0, then w(a, b, c) returns:
    1

if a > 20 or b > 20 or c > 20, then w(a, b, c) returns:
    w(20, 20, 20)

if a < b and b < c, then w(a, b, c) returns:
    w(a, b, c-1) + w(a, b-1, c-1) - w(a, b-1, c)

otherwise it returns:
    w(a-1, b, c) + w(a-1, b-1, c) + w(a-1, b, c-1) - w(a-1, b-1, c-1)

제한:

w(1, 1, 1)

w(0, 1, 1) + w(0, 0, 1) + w(0,1,0) - w(0,0,0)

1 + 1 + 1 - 1 = 2

w(2, 2, 2)

w(1, 2, 2) + w(1, 1, 2) + w(1, 2, 1) - w(1, 1, 1)