File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change 1- i = """@Hello, World!|#@heh|#""" ;p = 0 ;s = [];ts = []
2- while p != len (i ):
1+ = """@helo!|#"""
2+ p = 0 ;s = [];ts = [];m = 0
3+ while True :
34 if i [p ]== "@" :
45 p += 1
56 while 1 :
67 ts .append (i [p ]);p += 1
78 if i [p ]== "\n " or i [p ]== "|" :break
89 while len (ts )> 1 :a = str (ts [0 ])+ str (ts [1 ]);ts .pop (0 );ts .pop (0 );ts .reverse ();ts .append (a );ts .reverse ()
9- s .append (ts [0 ]);ts .pop ()
10- if i [p ]== "#" :
11- if len (s )> 0 :s .reverse ();print (s [0 ]);s .reverse ();s .pop ()
12- if i [p ]== "ƒ" :
13- if len (s )> 0 :s .reverse ();print (s [0 ],end = "" );s .reverse ();s .pop ()
10+ s .append (ts [0 ]);ts .pop
11+ if i [p ]== "#" :s .reverse ();print (s [0 ]);s .reverse ();s .pop ()
12+ elif i [p ]== "ƒ" :s .reverse ();print (s [0 ],end = "" );s .reverse ();s .pop ()
13+ elif i [p ]== "~" :m = 1
1414 p += 1
15+ if p == len (i ) and m == 0 :break
16+ elif p == len (i ) and m == 1 :
17+ while True :
18+ p -= 1
19+ if i [p ]== "\n " :break
20+ elif p == 0 :break
You can’t perform that action at this time.
0 commit comments