Advertisement
Guest User

help

a guest
Jan 23rd, 2020
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.75 KB | None | 0 0
  1.  
  2. # I wrote and debugged this code with all the convoluted "EAT" variable names.
  3. # Was it confusing? Yes. Was debugging hard? Yes.
  4. # Did I spend more time than I should have on this problem? Yes
  5.  
  6. EAT = int
  7. eAT = len
  8. EaT = print
  9. ATE = str
  10. EATEATEATEATEATEAT = ATE.isdigit
  11.  
  12. def Eating(eat):
  13.     return ATE(EAT(eat)*EATEATEAT)
  14.  
  15. def EAt(eat, eats):
  16.     print(eat, eats)
  17.     eat1 = 0
  18.     eat2 = 0
  19.     eateat = 0
  20.     eAt = ""
  21.     while eat1 < eAT(eat) and eat2 < eAT(eats):
  22.         if eateat%EATEATEAT == EATEATEATEATEAT//EATEATEATEAT:
  23.             eAt += eats[eat2]
  24.             eat2 += 1
  25.         else:
  26.             eAt += eat[eat1]
  27.             eat1 += 1
  28.         eateat += 1
  29.     return eAt
  30.  
  31. def aten(eat):
  32.     return eat[::EATEATEAT-EATEATEATEAT]
  33.  
  34. def eaT(eat):
  35.     return Eating(eat[:EATEATEAT]) + aten(eat)
  36.  
  37. def aTE(eat):
  38.     return eat#*eAT(eat)
  39.  
  40. def Ate(eat):
  41.     return "Eat" + ATE(eAT(eat)) + eat[:EATEATEAT]
  42.  
  43. def Eat(eat):
  44.     if eAT(eat) == 9:
  45.         if EATEATEATEATEATEAT(eat[:EATEATEAT]) and\
  46.             EATEATEATEATEATEAT(eat[eAT(eat)-EATEATEAT+1:]):
  47.                 eateat = EAt(eaT(eat), Ate(aTE(aten(eat))))
  48.                 if eateat == "E10a23t9090t9ae0140":
  49.                     flag = "eaten_" + eat
  50.                     EaT("absolutely EATEN!!! CTFlearn{",flag,"}")
  51.                 else:
  52.                     EaT("thats not the answer. you formatted it fine tho, here's what you got\n>>", eateat)
  53.         else:
  54.             EaT("thats not the answer. bad format :(\
  55.            \n(hint: 123abc456 is an example of good format)")
  56.     else:
  57.         EaT("thats not the answer. bad length :(")
  58.  
  59. EaT("what's the answer")
  60. eat = input()
  61. EATEATEAT = eAT(eat)//3
  62. EATEATEATEAT = EATEATEAT+1
  63. EATEATEATEATEAT = EATEATEAT-1
  64. Eat(eat)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement