-
Notifications
You must be signed in to change notification settings - Fork 0
/
FunctionHamkerRanker.py
76 lines (61 loc) · 1.59 KB
/
FunctionHamkerRanker.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
##n = int(input().strip())
###if (n==0 or n==1):
### print("Weird")
##if (n%2)==0 and n>=2 and n<5:
## print("Not Weird")
##if (n%2)==0 and n>=6 and n<=20:
## print("Weird")
##if (n%2)==0 and n>20:
## print("Not Weird")
##if (n%2)==1:
## print("Weird")
##a=3
##b=5
###if(a<b):
### print(a+b)
###if(b>a):
### print(a-b)
###if(b>=a):
### print(a*b)
##print(a//b)
##print(a/b)
##n=int(input())
###print(n[0]*n[0])
###print(n[1]*n[1])
###print(n[2]*n[2])
###for print sequare of list number in next new line
##for i in range(0, 100):
## if i<n:
## print(i*i)
#def is_leap(year):
##if year%4==0:
## leap=True
##elif year%100== 0:
## leap=False
##elif year%400==0:
## leap=True
# leap = False
# leap = year % 4 == 0 and year %100 != 0 or year % 100 == 0 and year % 400 ==0
# if leap:
# return leap
# else:
# return leap
#year = int(input())
#print(is_leap(year))
#HackerRank Set .discard(), .remove() & .pop() in python problem solution
#n = int(input())
#s = set(map(int, input().split()))
#length = int(input())
#for i in range(0, length):
# kwargs = input().strip().split(" ")
# if kwargs[0] == "pop":
# s.pop()
# elif kwargs[0] == "remove":
# s.remove(int(kwargs[1]))
# elif kwargs[0] == "discard":
# s.discard(int(kwargs[1]))
#print (sum(s))
#to count union, intersection, diffrence,symmetric_diffrence in hanker rank question
#n,a = int(input()),set(int(i) for i in input().split())
#m,b = int(input()),set(int(i) for i in input().split())
#print(len(a.union(b)))