diff options
Diffstat (limited to 'progs/a439.py')
-rw-r--r-- | progs/a439.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/a439.py b/progs/a439.py new file mode 100644 index 0000000..2ed5b62 --- /dev/null +++ b/progs/a439.py @@ -0,0 +1,6 @@ +def count_Squares(m,n):
+ if(n < m):
+ temp = m
+ m = n
+ n = temp
+ return ((m * (m + 1) * (2 * m + 1) / 6 + (n - m) * m * (m + 1) / 2))
\ No newline at end of file |