Skip to content

Commit

Permalink
Merge pull request #36 from saket13/patch-4
Browse files Browse the repository at this point in the history
AE00 - Rectangles
  • Loading branch information
haritha1313 authored Oct 29, 2018
2 parents d51ef83 + bc73f8b commit 5bba081
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions python/AE00 - Rectangles
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
#from __future__ import division
import math
#import os
#import random
#import re
#from sys import stdin, stdout
#from collections import Counter,deque,OrderedDict,defaultdict
#from itertools import permutations,product,combinations
#from heapq import heapify,heappush,heappop,heappushpop,heapify,heapreplace,nlargest,nsmallest
#import numpy as np
from operator import mul


MOD=10**9+7
INF=float('+inf')


def si():
return str(stdin.readline())
def ii():
return int(raw_input())
def mi():
return map(int, raw_input().split())
def li():
return [int(i) for i in raw_input().split()]
def debug(x):
return stdout.write(str(x))
def limul(list):
return eval('*'.join(str(item) for item in list))


"-----------------------------------------------"


def main():
t=ii()
nor=0
for i in range(1,t+1):
nor+=nof(i)
print(nor)

def nof(n):
nf=1
sr=int(math.sqrt(n))
for i in range(2,sr+1):
if n%i==0:
nf+=1
return nf






























main()

0 comments on commit 5bba081

Please sign in to comment.