summaryrefslogtreecommitdiff
path: root/progs/a710.py
blob: 53ba0655683dbe9b18c2a97729645c04611031e2 (plain)
1
2
3
4
5
6
def count_Squares(m,n): 
    if (n < m): 
        temp = m 
        m = n 
        n = temp 
    return n * (n + 1) * (3 * m - n + 1) // 6