Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- e = input()
- if e.count('мяу'):
- begin = 1
- while begin==1:
- a = input()
- def printing(s):
- if s.count('мяуу'):
- z = s[s.find('[')+1:s.find(']')]
- (a,b) = map(int,z.split())
- print(summ(a,b))
- elif s.count('миуу'):
- z = s[s.find('[')+1:s.find(']')]
- (a,b) = map(int,z.split())
- print(sub(a,b))
- elif s.count('мяурр'):
- z = s[s.find('[')+1:s.find(']')]
- (a,b) = map(int,z.split())
- print(mult(a,b))
- elif s.count('миурр'):
- z = s[s.find('[')+1:s.find(']')]
- (a,b) = map(int,z.split())
- print(sha(a,b))
- else:
- print(s[s.find('(')+1:s.find(')')])
- def wait(s):
- sec = s[s.find('(')+1:s.find(')')]
- time.sleep(int(sec))
- def summ(n1,n2):
- return(n1+n2)
- def mult(n1,n2):
- return(n1*n2)
- def sha(n1,n2):
- return(n1/n2)
- def sub(n1,n2):
- return(n1-n2)
- if a.count('мяумяу'):
- printing(a)
- if a.count('муррр'):
- wait(a)
- if a.count('мур'):
- begin = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement