1
29 symbols pyth
Mon Oct 31 04:29:22 2016 Sait2000
-jk++UTb<G6@c"6f 05e 4cf"dChz
2
50 symbols bash
Tue Jul 26 18:05:22 2016 hidefromkgb
md5sum|fold -w1|sort -u|tr -d \\n\ -|sed s/9/9\\n/
3
55 symbols bash
Tue Jan 13 23:52:03 2015 beched
md5sum|grep -o .|sort|uniq|tr -d '\n \-'|sed 's/a/\na/'
4
56 symbols pyth
Fri Oct 21 22:03:26 2016 Sait2000
:{Sv%"__import__('hashlib').md5(b%s).hexdigest()"`z\a"
a
5
58 symbols bash
Tue Jan 13 22:32:19 2015 beched
md5sum|grep -o .|sort|uniq|tr -d '\n \-'|sed 's/a/\na/'<&0
6
81 symbols perl
Mon Sep 29 22:34:39 2014 maxymania
#!/usr/bin/perl -p
use Digest::MD5 md5_hex;$_=join'',sort split//,md5_hex$_;s/(.)\1+/$1/g;s/a/\na/
7
83 symbols perl
Sun Aug 24 05:57:24 2014 gabrielmad
#!/usr/bin/perl -p
use Digest::MD5 'md5_hex';$_=join'',sort split//,md5_hex$_;s/(.)\1+/$1/g;s/a/\na/
8
87 symbols perl
Sun Aug 24 04:49:42 2014 gabrielmad
#!/usr/bin/perl 
use Digest::MD5 'md5_hex';$_=join'',sort split//,md5_hex<>;s/(.)\1+/$1/g;s/a/\na/;print
9
88 symbols python2
Mon Aug 11 13:20:58 2014 xsot
import md5
print`sorted(set(md5.new(raw_input()).hexdigest()))`[2::5].replace('a','\na')
10
96 symbols python2
Sat Aug 9 16:50:44 2014 PFischbeck
import hashlib as h
print''.join(sorted(set(h.md5(raw_input()).hexdigest()))).replace("a","\na")
11
109 symbols ruby
Mon Aug 15 19:12:38 2016 mhib
require 'digest'
puts Digest::MD5.hexdigest(gets.chomp).chars.partition{|n|n.ord<58}.map{|n|n.sort.uniq.join}
12
110 symbols python3
Mon Aug 11 04:26:36 2014 PFischbeck
import hashlib as h
print(''.join(sorted(set(h.md5(input().encode('utf-8')).hexdigest()))).replace("a","\na"))
13
127 symbols python2
Thu Aug 7 01:19:46 2014 PixelIndigo
import hashlib as h
m=h.md5()
m.update(raw_input())
s=''.join(sorted(set(m.hexdigest())))
a=s.index('a')
print s[:a]+"\n"+s[a:]
14
134 symbols python2
Wed Aug 6 04:42:05 2014 vik
import hashlib as h
m=h.md5()
m.update(raw_input())
s="".join(sorted(set(m.hexdigest())))
print s[:s.index('a')]+"\n"+s[s.index('a'):]
15
143 symbols python2
Wed Aug 6 04:40:31 2014 vik
import hashlib as h
m=h.md5()
m.update(raw_input())
s=sorted(set(m.hexdigest()))
print "".join(s[:s.index('a')])+"\n"+"".join(s[s.index('a'):])
16
144 symbols python2
Wed Aug 6 04:39:25 2014 vik
import hashlib as h
m=h.md5()
m.update(raw_input())
s=sorted(set(m.hexdigest()))
print "".join(s[:s.index('a')])
print "".join(s[s.index('a'):])
17
147 symbols python2
Mon Aug 4 22:06:22 2014 LLcoolNJ
import hashlib as h
m=h.md5()
m.update(raw_input())
s=sorted(set(m.hexdigest()))
d=w=''
for i in s:
 if i>'9':
  w+=i
 else:
  d+=i
print d
print w
18
162 symbols python3
Fri Aug 1 14:44:00 2014 PixelIndigo
import hashlib as h
m=h.md5()
m.update(input().encode('utf8'))
s=sorted(set(m.hexdigest()))
print(''.join([x for x in s if x<':']+['\n']+[x for x in s if x>'9']))
19
173 symbols python3
Fri Aug 1 14:34:06 2014 PixelIndigo
import hashlib as h
m=h.md5()
m.update(input().encode('utf8'))
s=sorted(set(x for x in m.hexdigest()))
print(''.join([x for x in s if x<':']+['\n']+[x for x in s if x>'9']))
20
178 symbols python3
Fri Aug 1 14:29:52 2014 PixelIndigo
import hashlib as h
m=h.md5()
m.update(input().encode('utf-8'))
s=set(x for x in m.hexdigest())
print(''.join(sorted(x for x in s if x<':')+['\n']+sorted(x for x in s if x>'9')))
21
184 symbols python3
Fri Aug 1 14:23:12 2014 PixelIndigo
import hashlib as h
m=h.md5()
m.update(input().encode('utf-8'))
s=set(x for x in m.hexdigest())
print(''.join(sorted(filter(lambda x:x<':',s))+['\n']+sorted(filter(lambda x:x>'9',s))))
22
199 symbols python3
Fri Aug 1 14:09:53 2014 PixelIndigo
import hashlib as h
m=h.md5()
m.update(input().encode('utf-8'))
s=set(x for x in m.hexdigest())
d,l=filter(lambda x:x<':',s),filter(lambda x:x>'9',s)
print(''.join(sorted(d))+"\n"+''.join(sorted(l)))
23
211 symbols python3
Fri Aug 1 03:26:38 2014 vik
import hashlib as b
s,m=input().encode('utf-8'),b.md5()
m.update(s)
d,l,s=set(),set(),str(m.hexdigest())
for x in s:
 if "/"<x<=":":
  d.add(x)
 else:
  l.add(x)
print(''.join(sorted(d))+"\n"+''.join(sorted(l)))
24
214 symbols python3
Fri Aug 1 03:22:06 2014 vik
import hashlib
s,m=input().encode('utf-8'),hashlib.md5()
m.update(s)
d,l,s=set(),set(),str(m.hexdigest())
for x in s:
 if '0'<=x<='9':
   d.add(x)
 else:
  l.add(x)
print(''.join(sorted(d))+"\n"+''.join(sorted(l)))
25
223 symbols python3
Fri Aug 1 03:25:34 2014 vik
import hashlib
s,m=input().encode('utf-8'),hashlib.md5()
m.update(s)
d,l,s=set(),set(),str(m.hexdigest())
for x in s:
 if "/"<x<=":":#dirty hack
  d.add(x)
 else:
  l.add(x)
print(''.join(sorted(d))+"\n"+''.join(sorted(l)))
26
343 symbols python3
Fri Aug 1 03:11:30 2014 vik
import hashlib
s=input().encode('utf-8')
md5=hashlib.md5()
md5.update(s)
digits,letters,s=[],[],str(md5.hexdigest())
for x in s:
 if '0'<=x<='9':
  if x not in digits:
   digits.append(x)
 elif x not in letters:
  letters.append(x)
digits.sort()
letters.sort()
print(''.join(digits)+"\n"+''.join(letters))

#pix, учись. есть ещё, где сократить
27
369 symbols python3
Fri Aug 1 01:34:08 2014 PixelIndigo
import hashlib
s = input().encode('utf-8')
md5 = hashlib.md5()
md5.update(s)
s = str(md5.hexdigest())
digits = []
letters = []
for x in s:
    if('0' <= x <= '9'):
        if(x not in digits):
            digits.append(x)
    elif(x not in letters):
        letters.append(x)
digits.sort()
letters.sort()
print(''.join(digits))
print(''.join(letters))                  
28
1058 symbols haskell
Mon Mar 23 11:06:41 2015 YoshikuniJujo
import Data.List
import Data.Word
import Data.Bits
import Data.Char
import Numeric
r=replicate
v=unfoldr
main=interact$unlines.t.m
t s=map(nub.sort.(`filter`s))[isDigit,isAlpha]
f=r 16=<<[\x y z->x.&.y.|.complement x.&.z,\x y z->x.&.z.|.y.&.complement z,\x y z->x`xor`y`xor`z,\x y z->y`xor`(x.|.complement z)]
w=map(floor.(2^32*).abs.sin)[1..64]
k=[0..15]++5#1++3#5++7#0
x#y=take 16$iterate((`mod`16).(+x))y
s=concat.r 4=<<[[7,12..22],[5,9, 14,20],[4,11,16,23],[6,10,15,21]]
o x(a,b,c,d)(f,k,s,t)=(d,e,b,c)where e=b+(a+f b c d+x!!k+t)`rotateL`s
p(a,b,c,d)x=(a+e,b+g,c+h,d+i)where(e,g,h,i)=foldl(o x)(a,b,c,d)$zip4 f k s w
m t=j 4=<<[a,b,c,d]where(a,b,c,d)=foldl p(0x67452301,0xefcdab89,0x98badcfe,0x10325476)$l t;j 0 _="";j i n=w(n.&.0xff)++j(i-1)(n`shiftR`8);w n=let s=showHex n""in r(2-length s)'0'++ s
l=v(u 16).map w.v(u 4).z where w[]=0::Word32;w(c:cs)=fromIntegral (ord c).|.w cs`shiftL`8;u _[]=Nothing;u n x=Just(take n x,drop n x)
z s=s++"\x80"++r ((55-l`mod`64)`mod`64)'\x00'++j 8(8*l)where l=length s;j 0 _="";j i n=chr(n.&.0xff):j(i-1)(n`shiftR`8)
29
1079 symbols haskell
Thu Mar 19 10:14:57 2015 YoshikuniJujo
import Data.List
import Data.Word
import Data.Bits
import Data.Char
import Numeric
q=concatMap
r=replicate
v=unfoldr
main=interact$unlines.t.m
t s=map(nub.sort.(`filter`s))[isDigit,isAlpha]
f=q(r 16)[\x y z->x.&.y.|.complement x.&.z,\x y z->x.&.z.|.y.&.complement z,\x y z->x`xor`y`xor`z,\x y z->y`xor`(x.|.complement z)]
w=map(floor.(2^32*).abs.sin)[1..64]
k=[0..15]++5#1++3#5++7#0
x#y=take 16$iterate((`mod`16).(+x))y
s=q(concat.r 4)[[7,12..22],[5,9, 14,20],[4,11,16,23],[6,10,15,21]]
o x(a,b,c,d)(f,k,s,t)=(d,e,b,c)where e=b+(a+f b c d+x!!k+t)`rotateL`s
p(a,b,c,d)x=(a+e,b+g,c+h,d+i)where(e,g,h,i)=foldl(o x)(a,b,c,d)$zip4 f k s w
m t=q(j 4)[a,b,c,d]where(a,b,c,d)=foldl p(0x67452301,0xefcdab89,0x98badcfe,0x10325476)$l t;j 0 _="";j i n=w(n.&.0xff)++j(i-1)(n`shiftR`8);w n=let s=showHex n""in r(2-length s)'0'++ s
l=v(u 16).map w.v(u 4).z where w[]=0::Word32;w(c:cs)=fromIntegral (ord c).|.w cs`shiftL`8;u _[]=Nothing;u n x=Just(take n x,drop n x)
z s=s++"\x80"++((55-l`mod`64)`mod`64)`replicate`'\x00'++j 8(8*l)where l=length s;j 0 _="";j i n=chr(n.&.0xff):j(i-1)(n`shiftR`8)