Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1:
- # Read an integer:
- # a = int(input())
- # Print a value:
- # print(a)
- i1 = int(input())
- i2 = int(input())
- if(i1 < i2):
- print(i1)
- else:
- print(i2)
- 2:
- # Read an integer:
- # a = int(input())
- # Print a value:
- # print(a)
- x = int(input())
- if(x % 2):
- print(1)
- elif(x == 0):
- print(0)
- else:
- print(-1)
- 3:
- # Read an integer:
- # a = int(input())
- # Print a value:
- # print(a)
- i1 = int(input())
- i2 = int(input())
- i3 = int(input())
- if(i1 < i3 and i1 < i2):
- print(i1)
- elif(i2 < i1 and i2 < i3):
- print(i2)
- else:
- print(i3)
- 4:
- # Read an integer:
- # a = int(input())
- # Print a value:
- # print(a)
- def leapyr(n):
- if n % 400 == 0:
- return "LEAP"
- if n % 100 == 0:
- return "COMMON"
- if n % 4 == 0:
- return "LEAP"
- else:
- return "COMMON"
- test = int(input())
- print(leapyr(test))
- 5:
- # Read an integer:
- # a = int(input())
- # Print a value:
- # print(a)
- i1 = int(input())
- i2 = int(input())
- i3 = int(input())
- if(i1 == i2 and i2 == i3):
- print(3)
- elif((i1 == i2 and i1 != i3) or (i2 == i3 and i3 != i1) or (i1 == i3 and i3 != i2)):
- print(2)
- else:
- print(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement