File size: 86 Bytes
1514a0b
 
 
 
 
1
2
3
4
5
def No_of_cubes(N, K):
    No = 0
    No = N - K + 1
    No = pow(No, 3)
    return No