Virtual_Universe

cat:programm language

Nov 14th, 2015
125
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import time
  2. e = input()
  3. if e.count('мяу'):
  4.     begin = 1
  5. while begin==1:
  6.     a = input()
  7.     def printing(s):
  8.         if s.count('мяуу'):
  9.             z = s[s.find('[')+1:s.find(']')]
  10.             (a,b) = map(int,z.split())
  11.             print(summ(a,b))
  12.         elif s.count('миуу'):
  13.             z = s[s.find('[')+1:s.find(']')]
  14.             (a,b) = map(int,z.split())
  15.             print(sub(a,b))
  16.         elif s.count('мяурр'):
  17.             z = s[s.find('[')+1:s.find(']')]
  18.             (a,b) = map(int,z.split())
  19.             print(mult(a,b))
  20.         elif s.count('миурр'):
  21.             z = s[s.find('[')+1:s.find(']')]
  22.             (a,b) = map(int,z.split())
  23.             print(sha(a,b))
  24.         else:
  25.             print(s[s.find('(')+1:s.find(')')])
  26.     def wait(s):
  27.         sec = s[s.find('(')+1:s.find(')')]
  28.         time.sleep(int(sec))
  29.     def summ(n1,n2):
  30.         return(n1+n2)
  31.     def mult(n1,n2):
  32.         return(n1*n2)
  33.     def sha(n1,n2):
  34.         return(n1/n2)
  35.     def sub(n1,n2):
  36.         return(n1-n2)
  37.     if a.count('мяумяу'):
  38.         printing(a)
  39.     if a.count('муррр'):
  40.         wait(a)
  41.     if a.count('мур'):
  42.         begin = 0
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×