1
16 symbols pyth
Mon Sep 19 15:02:25 2016 Sait2000
VeM.z .xaYsN
.)Y
2
25 symbols perl
Sat Aug 13 00:44:41 2016 vakorol
#!/usr/bin/perl -p
$_=/ /?!push@a,$':pop@a
3
26 symbols perl
Mon Aug 8 18:55:35 2016 k-mx
#!/usr/bin/perl -nl
/ /?$a.=$':print chop$a
4
27 symbols perl
Sat Jul 30 22:33:03 2016 k-mx
#!/usr/bin/perl -nl
/\d/?$a.=$&:print chop$a
5
29 symbols perl
Mon Sep 29 20:23:52 2014 vakorol
#!/usr/bin/perl -nl
/\d/?push@a,$&:print pop@a
6
30 symbols ruby2.0
Sun Oct 5 19:23:11 2014 fl00r
#!/usr/bin/ruby2.0 -n
$_[4]?$:<<$_[4]:puts($:.pop)
7
30 symbols ruby2.0
Sun Oct 5 19:28:36 2014 fl00r
#!/usr/bin/ruby2.0 -n
$_[4]?$:<<$_[4,2]:$><<$:.pop
8
32 symbols ruby2.0
Sun Oct 5 19:07:27 2014 fl00r
#!/usr/bin/ruby2.0 -n
$_[4]?($:<<$_[4]):puts($:.pop)
9
32 symbols ruby2.0
Sun Oct 5 19:11:55 2014 fl00r
#!/usr/bin/ruby2.0 -n
$_[4]&&$:<<$_[4]||puts($:.pop)
10
32 symbols bash
Wed Jul 27 05:34:08 2016 hidefromkgb
sed '{s/.* //;G};/p/{g;P;D};h;d'
11
34 symbols perl
Fri Aug 8 21:44:14 2014 avkhozov
#!/usr/bin/perl -aln
$F[1]?push@s,$F[1]:print pop@s
12
34 symbols perl
Fri Sep 5 20:17:20 2014 sago35
#!/usr/bin/perl -p
!s/.* (..)//s?$_=pop@x:push@x,$1
13
37 symbols ruby2.0
Sun Oct 5 19:05:38 2014 fl00r
#!/usr/bin/ruby2.0 -p
$_[4]?($:<<$_[4,2];$_=''):$_=$:.pop
14
40 symbols ruby2.0
Sat Aug 9 20:08:06 2014 nooodl
$_[4]?($:<<$_[4]):puts($:.pop)while gets
15
45 symbols bash
Wed Jul 27 05:27:15 2016 hidefromkgb
sed '{s/add //;G};/p/{g;P;s/^[^\n]*\n//};h;d'
16
46 symbols bash
Wed Jul 27 05:18:21 2016 hidefromkgb
sed '/a/G;/p/{g;s/add //;P;s/^[^\n]*\n//};h;d'
17
47 symbols perl
Tue Sep 16 02:26:56 2014 maxymania
m'.* (.*)'?push@_,$1:print(pop(@_),"\n")while<>
18
75 symbols ruby
Mon Aug 15 18:56:43 2016 mhib
@a=[]
def self.method_missing n,*a
p @a.send n
rescue
@a+=a
end
eval gets p
19
83 symbols ruby2.0
Fri Aug 8 21:09:40 2014 Nakilon
@stack = []
def add x
  @stack.push x
end
def pop
  puts @stack.pop
end
eval gets p
20
86 symbols python2
Sat Aug 9 20:18:35 2014 nooodl
import os;s=[]
for i in os.read(0,99).split():
 s+=[i]*(i<'a')
 if i>'b':print s.pop()
21
86 symbols python2
Sun Aug 10 23:58:55 2014 LLcoolNJ
import sys
a=[]
for s in sys.stdin:
 b=s.split()
 if b[1:]:a+=b[1]
 else:print a.pop()
22
87 symbols python2
Sun Aug 10 18:46:10 2014 PFischbeck
import sys
a=[]
for s in sys.stdin:
 b=s.split()
 if b[1:]:a+=b[1:]
 else:print a.pop()
23
87 symbols python3
Mon Aug 11 21:01:55 2014 z423x5c6
import sys
a=[]
for i in sys.stdin:
 i=i.split()
 if i[1:]:a+=i[1]
 else:print(a.pop())
24
88 symbols python2
Sun Aug 10 18:52:44 2014 vik
import sys
a=[]
for i in sys.stdin:
 i=i.split()
 if i[1:]:a+=[i[1]]
 else:print a.pop()
25
88 symbols python3
Mon Aug 11 21:01:46 2014 z423x5c6
import sys
a=[]
for i in sys.stdin:
 i=i.split()
 if i[1:]:a+=i[1:]
 else:print(a.pop())
26
88 symbols python3
Wed Apr 15 20:49:41 2015 Atte
import sys
s=[]
for l in sys.stdin:p=l.split();s.append(p[1])if p[1:]else print(s.pop())
27
89 symbols python3
Sun Aug 10 18:35:51 2014 z423x5c6
import sys
a=[]
for i in sys.stdin:
 i=i.split()
 if i[1:]:a+=[i[1]]
 else:print(a.pop())
28
90 symbols python2
Sat Aug 9 15:35:23 2014 PFischbeck
import sys
a=[]
for s in sys.stdin:
 b=s.split()
 if b[0]<'b':a+=b[1:]
 else:print a.pop()
29
93 symbols haskell
Fri Mar 13 10:19:58 2015 YoshikuniJujo
main=interact$concatMap(:"\n").s"".lines
s _[]=""
s(c:t)("pop":o)=c:s t o
s t(c:o)=s(c!!4:t)o
30
104 symbols python2
Sun Aug 10 18:49:07 2014 vik
import sys
a=[]
for l in sys.stdin:
 try:
  b=l.split()[1]
 except:
  print a.pop()
 else:
  a.append(b)
31
106 symbols python3
Sun Aug 10 18:33:36 2014 z423x5c6
import sys
a=[]
for i in sys.stdin:
 i=i[:-1].split()
 if i[1:]:a+=[i[1]]
 else:
  print(a[-1])
  a=a[:-1]
32
108 symbols haskell
Fri Mar 13 10:15:07 2015 YoshikuniJujo
main=interact$concatMap(:"\n").s"".lines
s _[]=""
s t(['a','d','d',' ',c]:o)=s(c:t)o
s(c:t)("pop":o)=c:s t o
33
119 symbols python3
Fri Aug 8 22:00:45 2014 z423x5c6
from sys import stdin
a=[]
for i in stdin:
 i=i[:-1].split()
 if i[0]=='add':a+=[i[1]]
 else:
  print(a[-1])
  a=a[:-1]
34
219 symbols python3
Sat Oct 8 19:21:52 2016 GreenJoey
stack = []

while True:
    try:
        instruction = input().split()
        if instruction[0] == "add":
            stack.append(instruction[1])
        else:
            print(stack.pop())
    except:
        break
35
242 symbols python3
Sat Oct 8 14:36:55 2016 GreenJoey
from sys import exit

stack = []

while True:
    try:
        instruction = input().split()
        if instruction[0] == "add":
            stack.append(instruction[1])
        else:
            print(stack.pop())
    except:
        exit(0)