1
29 symbols pyth
Fri Oct 21 14:35:10 2016 Sait2000
VJmm.cdkhdQjdm.[;l`@eJd`@NdlN
2
35 symbols pyth
Fri Oct 21 14:17:05 2016 Sait2000
VtJ.u+sMC,N+ZN1QYjdm.[;l`@eJd`@NdlN
3
38 symbols pyth
Fri Oct 21 14:09:12 2016 Sait2000
JYVQ aJ=+sMC,Y+ZY1)VJjdm.[;l`@Yd`@NdlN
4
39 symbols pyth
Mon Sep 19 16:01:37 2016 Sait2000
JYVQ aJ=Y+sMC,+ZYY1)VJjdm.[;l`@Yd`@NdlN
5
40 symbols pyth
Mon Sep 19 06:49:11 2016 Sait2000
JYVQ aJ=Y+sMC,+ZYY1)VJjdm.[\ l`@Yd`@NdlN
6
42 symbols pyth
Mon Sep 19 03:14:25 2016 Sait2000
JYVQ aJ=Y+sMC,+ZYY1)VJjdm.[\ l+k@Yd+k@NdlN
7
43 symbols pyth
Mon Sep 19 02:58:42 2016 Sait2000
JYVQ aJ=Y+sMC,+ZYY1)VJjdm.[" "l+k@Yd+k@NdlN
8
46 symbols pyth
Sun Sep 18 21:03:16 2016 Sait2000
J]]1VtQ aJsM.T,+ZeJeJ)VJjdm.[" "l+k@eJd+k@NdlN
9
48 symbols pyth
Sun Sep 18 21:00:54 2016 Sait2000
J]]1VStQ aJsM.t,+ZeJeJZ)VJjdm.[" "l+k@eJd+k@NdlN
10
51 symbols pyth
Sun Sep 18 20:50:16 2016 Sait2000
J]]1VtQK+ZeJ aJm+@Kd@KhdlK)VJjdm.[" "l+k@eJd+k@NdlN
11
54 symbols pyth
Sun Sep 18 20:40:20 2016 Sait2000
J]]1VStQK+Z+eJZ aJm+@Kd@KhdhN)VJjdm.[" "l+k@eJd+k@NdlN
12
56 symbols pyth
Sun Sep 18 20:35:23 2016 Sait2000
J]]1VStQK+Z+eJZ aJm+@Kd@KhdhN)VJjdm%%"%%%ss"l+k@eJd@NdlN
13
123 symbols python2
Fri Sep 16 06:30:21 2016 Sait2000
a=b=[]
for z in[zip]*input():b=map(sum,z(b,[0]+b))+[1];a+=b,
for c in a:print" ".join("%%%ss"%len(`p`)%q for p,q in z(b,c))
14
127 symbols python2
Fri Sep 16 06:19:01 2016 Sait2000
a=b=[]
for z in[zip]*input():b=[1]+map(sum,z(b,b[1:]+[0]));a+=b,
for c in a:print" ".join("%%%ss"%len(`p`)%q for p,q in z(b,c))
15
128 symbols python2
Fri Sep 16 06:10:35 2016 Sait2000
a=b=[]
for i in" "*input():b=[1]+map(sum,zip(b,b[1:]+[0]));a+=b,
for c in a:print i.join("%%%ss"%len(`p`)%q for p,q in zip(b,c))
16
129 symbols python2
Fri Sep 16 05:58:58 2016 Sait2000
a=b=[]
for i in[0]*input():b=[1]+map(sum,zip(b,b[1:]+[0]));a+=b,
for c in a:print" ".join("%%%ss"%len(`p`)%q for p,q in zip(b,c))
17
133 symbols python2
Fri Sep 16 05:26:31 2016 Sait2000
a=b=[]
for i in range(input()):b=[1]+map(sum,zip(b,b[1:]+[0]));a+=b,
for c in a:print" ".join("%%%ss"%len(`p`)%q for p,q in zip(b,c))
18
138 symbols python2
Fri Sep 16 05:16:40 2016 Sait2000
a=[]
for i in range(input()):b=[1]+[sum(b[x:x+2])for x in range(i)];a+=b,
for c in a:print" ".join("%%%ss"%len(`p`)%q for p,q in zip(b,c))
19
140 symbols python2
Fri Sep 16 05:11:10 2016 Sait2000
a=b=[]
for i in range(input()):b=[1]+[sum(b[x:x+2])for x in range(i)];a+=b,
for c in a:print" ".join("%%%ss"%len(`p`)%q for p,q in zip(b,c))
20
142 symbols python2
Fri Sep 16 04:56:16 2016 Sait2000
r=range
a=[]
a+=([1]+[sum(a[-1][x:x+2])for x in r(i)]for i in r(input()))
for b in a:print" ".join("%%%ss"%len(`p`)%q for p,q in zip(a[-1],b))
21
142 symbols python2
Fri Sep 16 05:06:58 2016 Sait2000
a=[]
for i in range(input()):a+=[1]+[sum(a[-1][x:x+2])for x in range(i)],
for b in a:print" ".join("%%%ss"%len(`p`)%q for p,q in zip(a[-1],b))
22
146 symbols python2
Thu Sep 15 06:37:35 2016 Sait2000
r=range
a=[]
a+=([1]+[sum(a[-1][x:x+2])for x in r(i)]for i in r(input()))
for b in a:print" ".join("%%%ss"%len(`a[-1][x]`)%b[x]for x in r(len(b)))
23
151 symbols python2
Mon Sep 12 18:14:26 2016 Sait2000
r=range
a=[[1]]
a+=([1]+[sum(a[-1][x:x+2])for x in r(i)]for i in r(1,input()))
for b in a:print" ".join("%%%ss"%len(`a[-1][x]`)%b[x]for x in r(len(b)))
24
158 symbols python2
Mon Sep 12 18:09:43 2016 Sait2000
r=range
a=[[1]]
a+=([1]+[sum(a[-1][x:x+2])for x in r(i)]for i in r(1,input()))
for b in a:print"1"+"".join("%%%ss"%-~len(`a[-1][x]`)%b[x]for x in r(1,len(b)))
25
160 symbols python2
Mon Sep 12 18:05:18 2016 Sait2000
r=range
a=[[1]]
a+=([1]+[sum(a[-1][x:x+2])for x in r(i)]for i in r(1,input()))
for b in a:print"1"+"".join("%%%ss"%len(" %s"%a[-1][x])%b[x]for x in r(1,len(b)))
26
161 symbols perl
Sat Jan 10 20:44:18 2015 vakorol
#!/usr/bin/perl
$n=<>;for$r(0..$n-1){$a[$r]=[1];$o[$r].="\%${_}i ",$a[$r][$_]||=$a[$r-1][$_]+$a[$r-1][$_-1]for 0..$r}chop,s/\d+/length$a[-1][$&]/ge,printf"$_\n",@{$a[$i++]}for@o
27
161 symbols python2
Mon Sep 12 18:04:48 2016 Sait2000
r=range
a=[[1]]
a+=([1]+[sum(a[i][x:x+2])for x in r(i+1)]for i in r(input()-1))
for b in a:print"1"+"".join("%%%ss"%len(" %s"%a[-1][x])%b[x]for x in r(1,len(b)))
28
163 symbols python2
Mon Sep 12 18:03:42 2016 Sait2000
r=range
a=[[1]]
a+=([1]+[sum(a[i][x:x+2])for x in r(i)]+[1]for i in r(input()-1))
for b in a:print"1"+"".join("%%%ss"%len(" %s"%a[-1][x])%b[x]for x in r(1,len(b)))
29
164 symbols perl
Sat Jan 10 16:41:12 2015 vakorol
#!/usr/bin/perl
$n=<>;for$r(0..$n-1){$a[$r]||=[1];$o[$r].="\%${_}i ",$a[$r][$_]||=$a[$r-1][$_]+$a[$r-1][$_-1]for 0..$r}chop,s/\d+/length$a[-1][$&]/ge,printf$_."\n",@{$a[$i++]}for@o
30
167 symbols python2
Mon Sep 12 18:01:51 2016 Sait2000
r=range
a=[[1]]
a+=([1]+map(lambda x:sum(a[i][x:x+2]),r(i))+[1]for i in r(input()-1))
for b in a:print"1"+"".join("%%%ss"%len(" %s"%a[-1][x])%b[x]for x in r(1,len(b)))
31
168 symbols perl
Sat Jan 10 16:38:04 2015 vakorol
#!/usr/bin/perl
$n=<>;for$r(0..$n-1){$a[$r]||=[1];$o[$r].="\%${_}i ",$a[$r][$_]||=$a[$r-1][$_]+$a[$r-1][$_-1]for 0..$r}chop,$_=~s/\d+/length$a[-1][$&]/ge,printf$_."\n",@{$a[$i++]}for@o
32
168 symbols python2
Mon Sep 12 17:53:33 2016 Sait2000
r=range
a=[[1]]
a+=([1]+map(lambda x:a[i][x]+a[i][x+1],r(i))+[1]for i in r(input()-1))
for b in a:print"1"+"".join("%%%ss"%len(" %s"%a[-1][x])%b[x]for x in r(1,len(b)))
33
174 symbols haskell
Mon Mar 16 15:54:52 2015 YoshikuniJujo
main=interact$unlines.s.(`take`p).read
w=show
l=length
z=zipWith
p=[1]:map(\l@(_:t)->1:z(+)l t++[1])p
s q=map(unwords.z t(map(l.w)$last q))q
t n x=replicate(n-l(w x))' '++w x
34
180 symbols python2
Mon Sep 12 17:50:10 2016 Sait2000
r=range
a=[[1]]
a+=([1]+map(lambda x:a[i][x]+a[i][x+1],r(i))+[1]for i in r(input()-1))
for b in a:print"1"+"".join(("%"+str(len(str(a[-1][x+1]))+1)+"s")%b[x+1]for x in r(len(b)-1))
35
182 symbols python2
Mon Mar 16 01:32:24 2015 PFischbeck
r=range
a=[[1]]
a+=([1]+map(lambda x:a[i][x]+a[i][x+1],r(i))+[1] for i in r(input()-1))
for b in a:print"1"+"".join(("%"+str(len(str(a[-1][x+1]))+1)+"s")%b[x+1] for x in r(len(b)-1))
36
185 symbols haskell
Fri Mar 13 15:41:21 2015 YoshikuniJujo
main=interact$unlines.s.(`take`p).read
p=[1]:map(\l@(_:t)->(1:).(++[1])$zipWith(+)l t)p
s q=map(unwords.zipWith t(map(length.show)$last q))q
t n x=replicate(n-length(show x))' '++show x
37
209 symbols python2
Tue Oct 13 16:45:07 2015 BogdanShevchenko
L,P,d,r=['1'],[],input(),range
f=r(d)
for k in f:P+=[L];L=[str(int((L+[0])[i])+int(([0]+L)[i])) for i in r(len(L)+1)]
for k in f:print' '.join([' '*(len(P[d-1][j])-len(P[k][j]))+P[k][j] for j in r(len(P[k]))])
38
222 symbols python2
Tue Oct 13 16:39:04 2015 BogdanShevchenko
L,P,d,r=[1],[],input(),range
f=r(d)
for k in f:P+=[L];L=[(L+[0])[i]+([0]+L)[i] for i in r(len(L)+1)]
for k in f:P[k]=map(str,P[k])
for k in f:print' '.join([' '*(len(P[d-1][j])-len(P[k][j]))+P[k][j] for j in r(len(P[k]))])
39
223 symbols perl
Tue Jan 6 11:45:34 2015 avkhozov
$n=<>;@t=([1]);for(2..$n){@x=@{$t[$#t]};@a=(0,@x);@b=(@x,0);$x=[];for($i=0;$i!=@a;++$i){push@$x,$a[$i]+$b[$i]}push@t,$x}$h{$q++}=length for@{$t[$#t]};for(@t){$w=0;$r='';$r.=sprintf"%$h{$w++}s ",$_ for@$_;chop$r;print"$r\n"}
40
223 symbols python2
Tue Oct 13 16:29:06 2015 BogdanShevchenko
L,P,d,r=[1],[],input(),range
f=r(d)
for k in f:P+=[L];L=[(L+[0])[i]+([0]+L)[i] for i in r(len(L)+1)]
for k in f:P[k]=map(str,P[k])
for k in f:print ' '.join([' '*(len(P[d-1][j])-len(P[k][j]))+P[k][j] for j in r(len(P[k]))])
41
223 symbols ruby2.0
Tue Sep 27 17:51:23 2016 doublehelix
s=[[1]]
(0..gets.to_i-2).each do |k|
  t=s[k]
  a=[1]
  (1..t.size-1).each{ |i|a<<t[i-1]+t[i] }
  s<<(a<<1)
end
t=s.map{|o| o.map(&:to_s)}
t.each { |r| puts "#{r.zip(t.last.map(&:size)).map{ |a,b| a.rjust(b) }.join(' ')}"}
42
225 symbols perl
Wed Dec 31 14:53:35 2014 avkhozov
$n=<>;@t=([1]);for(2..$n){@a=(0,@{$t[$#t]});@b=(@{$t[$#t]},0);$x=[];for($i=0;$i!=@a;++$i){push@$x,$a[$i]+$b[$i]}push@t,$x}$h{$q++}=length for@{$t[$#t]};for(@t){$w=0;$r='';$r.=sprintf"%$h{$w++}s ",$_ for@$_;chop$r;print"$r\n"}
43
227 symbols python2
Tue Oct 13 16:11:19 2015 BogdanShevchenko
L,P,d=[1],[],input()
f=range(d)
for k in f:P+=[L];L=[(L+[0])[i]+([0]+L)[i] for i in range(len(L)+1)]
for k in f:P[k]=map(str,P[k])
for k in f:print ' '.join([' '*(len(P[d-1][j])-len(P[k][j]))+P[k][j] for j in range(len(P[k]))])