You are viewing a single comment's thread. Return to all comments →
This is in python3
def solve(n, m): p = n-1 q = m-1 return (p+q)+p*q
Seems like cookies are disabled on this browser, please enable them to open this website
Cutting Paper Squares
You are viewing a single comment's thread. Return to all comments →
This is in python3