Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 38 lines (31 sloc) 4.881 kB
#!/usr/bin/env python
'''
resp:
vvvpcz vvnfppc vxrm vwv vwfpwl vfzfxg vfzhs vkngzb vpnpnw vhkrjj vhmzb vljwq vcxr vcpvjb vcnhjq vnfrx vspffcgb vsqhptgm vssv vsmpjh vmkkhz vmst vmzjng vgkwhd vgpdqgpj vgl vtwp vtm vdpgrs vzb rvnhgb rvsg rrvvn rxntbp rwffqvs rwmtcll rfvghqbm rfq rkvzwdc rkpmc rprbnb rpw rpshczcx rqf rqgwngj rllszscw rlmxvb rjvznmgc rjf rcwxq rcszjnd rmvf rmqp rgstb rgzj rthw rtj rtsrd rbfgcmkp xrs xxrzmhkx xxwcrbb xwpxh xwqvgk xfknb xfhx xkpvclcc xknjsk xphhwdgk xpqqb xpsbzbqd xqsscwsw xqblrgg xlg xlgxtdc xjrnv xjp xcnrbj xcbcx xnrrr xmt xgq xgtrmdc xtzgxh xbqbjw xbt xbzkfgh xzx xzfkfsts xzhrvnrg xzl xzcksvv wvpst wrfxql wrfjhxjp wxcskn wwvbtgzt wwfwgzpq wwprkv wfp wfhcpz wfjrfmb wqpdgq wqhmqgr wqlmgt wjjdq wcgw wnl wnckbt wsqwvvgp wmxj wmfg wmqlnrg wgwxprwp wtwwkbw wtfcw wtchl wbpbrg wblpndpn wzhpcnm fvppbvs frdw fxrrk fxlczgkw fwxt fwbcj fpsnkdv fhwdhsn fhpf fqdqqnq flgjp flb flzds fnkjm fndfnqm fsfphg fmkxgvk fmjckhqt fmtn fgknxqx fgqrxpz fgzdv ftvhdpv ftd ftzfl fzkq krgw kxgqcjs kwk kwtvrh kfwqwnvs kfmc kft kknr kpjd kpsz kpmmsdp kpz khrml khkrn khqqc khsc kqlvqfg klrlt klk kjfpf kjgc kcswscjf ksp kshcw kmrkgj kmnsmn kgxb kgj kgjhrjzj kdf kdd kbjpzlgp kbblmv kzpr kzppgt pvcwpgt pvn prvqxrxt prbd pxbgv pfhgd pkb ppvqsw phsczzpp plkjnthl plltgq plthwcsh pjr pcvdjk pcrkwcb pskqssx psprjkhk pgmsw ptblfrhb pdfkp pdp pdsqnf pdd pdzlxdn pbfbfk pbsshb pzlmj hrtjsscq hrbqr hxx hxptlcf hwwbbs hfrgx hfbf hkvqngnn hkk hkl hhfp hhmmdcrz hhbgq hqrxv hqdcvgzs hlrpc hlwxfdcz hllb hlskqn hlsm hclt hndgqsq hsh hgpmx htnjlrhz hdgnmg hddgvkv hbwtz hbcrp hzcw hzslkklk qvxqp qvwrv qrfkbrb qrjhvxhw qxpqmqv qxtnrr qkcs qpszhx qpmkb qhvmb qhxmnbzp qhh qhj qqxpvpgc qlqb qlspg qjwj qjpw qnk qnhtbj qmfbq qmcm qmmhtkt qtxkjgd qtm qdxlkgvv qbkghf qzpcgxv lrbzjgb lxph lxdvvql lwhhwtkm lwb lfwcxt lfqtd lfblglhw lkvhhgg lpvbpx lplbjvw lpngb lqqd lqjpvfsj llwmkmd ljcbln ljmzvlr ljbhw lcr lckgjcl lnkx lsksc lsjw lsjht lsslkdq lmps lmnbbg ltxm ltw ltkmsvzf ltzqglb lddl lzrmkpgq lzwnqbwm lzh lztf jvngf jvdprcc jrj jrjvrwr jxkbc jxn jxt jxdhft jwvdnfd jfck jkkjnfk jhrc jqpbnm jlrgpt jlx jlgxlt jjfz jjmc jjzwdxhv jntm jsj jsz jgsdsp jggn jtxrxh jtxch jtpj jdglvtl jblknqn jzkv cvk crlgtt cxsqlbz cwn cwmsvdv cwzdxtgh cfrgdpj cfskpq ckv ckkbcd ckqzlwm cpcldr cpstccv cqthmg cqbghtzb clpvdp clhs cjjxgt cjddzdld cnfztchg cntvb cmzldf cgtjgjp cgdh cdr cdgvsq cdzmrcc czv czwpwg czf nvhjntr nrmspwcl nrdqc nxqxpwn nxcwvgnc nwvdnxvx nfphzjn nfjqsqj nkcknfj nkdlsmsk npfxfhw npdhkk nhgpb nqjrs nqcl nljrkpr njk ncrhz ncps nncnn nsvbzh nmw nmktkbgk nmlfkhvl nmsr nmsqmbtd nmmdhhcl ntxp nzrvqt nzl nzc svnh srv srs sxtcr swhs swhgzj swmj sfnrlb skrms shwlgjg shnbt shmcb sqjl sqcxqpxc sqgkdl sln sldflc sjwqvpd scqqkc scjjq snk snppz sns snsn ssfzj sshzcs ssljnxxl ssdwx smvbk smd sgtn stfglgwj sbr sbqww szh szsgnxpb mvwvn mkhbsflz mkdzxm mptvwsq mhr mhkq mqpm mjfrf mjffbmwh mjgvdwgd mcjzxh mct mngsp mgzglftz mtw mdpppc mdcg mdgvsmjv mdt mbvc mbgkd mzlql gvvxmnmr gvjjvxjw gvdjg gvztrwmw gxxmhd gxbn gxzgdnm gwv gwkwmht gfrnb gkrkd gkzs gpr gpp ghbj gqcvhkd gqb glhkvbt gljl glbj gjdz gnfr gspvk gmklwlxr gmcnvmg gmdg ggxgwn ggk ggkzw gtbh gdplqmtz gdssxxd gbp gbjl trhd trm txs txb twtqptl tfs tkb tpzmvj tqpzxrr tlpr tljrf tjlqlctg tjjwj tjbhbtt tcn tczsg tnxrtvrg tsfscc tsphzr tsck tmfxcvm tmmvc tgpcxpn tgtsr ttv ttsrvzx dxvmrncn dxbkc dffnvkj dfl dkl dpqvwn dpsckgzt dqtxrql dlwsmg dcbt dnw dstqjdrm dsbltfmz dmfm dmjbfjp dmnlgd dgbtbzsr dtpdbs ddv ddwxls ddmm dbqz dbglbshj dbbcpfzd dzvzpgtr dzxm dzp bvcj brx brxsjbp bxvnr bwx bww bwbnfgb bfrmm bfqbmjf bflpzs bprkctdj bpfhr bhj bhbrk bqf bqswqbv bqbwz bqzfprlr blxfv bjjkpnjg bjsl bsrrqwvp bsn bmqqd bmgj bmzt bgqrxrq bgqjv bdscpxrr bzpt bzcx zvvfdqtl zxj zxdbsd zwrkbbnk zwcmttgf zwdg zfvbzg zfhvscr zkjr zkdm zpkjtqm zhpvfvgb zhngbr zhdxslbc zqrqfvs zqrgxpb zqkmv znlgphlx zmkqnn zmdz ztwkkp ztljgn zdhkqf zdmncbsv zdbwqtwb zbftbrz zbjltz zzcvfch zzmnwsw
'''
import sys
order = {'v':'a', 'r':'b', 'x':'c', 'w':'d', 'f':'e', 'k':'f', 'p':'g', 'h':'h', 'q':'i', 'l':'j', 'j':'k', 'c':'l', 'n':'m', 's':'n', 'm':'o', 'g':'p', 't':'q',
'd':'r', 'b':'s', 'z':'t'}
order1 = {'a':'v', 'b':'r', 'c':'x', 'd':'w', 'e':'f', 'f':'k', 'g':'p', 'h':'h', 'i':'q', 'j':'l', 'k':'j', 'l':'c', 'm':'n', 'n':'s', 'o':'m', 'p':'g', 'q':'t',
'r':'d', 's':'b', 't':'z'}
fp = open(sys.argv[1], "r")
line = fp.readline()
words = line.split(' ')
uwords = list(set(words))
words_aux = list()
for i, word in enumerate(uwords):
word_aux = list()
for j, ch in enumerate(word):
word_aux.append(order[ch])
words_aux.append(''.join(word_aux))
words_aux.sort()
uwords = list()
for i, word in enumerate(words_aux):
word_aux = list()
for j, ch in enumerate(word):
word_aux.append(order1[ch])
uwords.append(''.join(word_aux))
print
for word in uwords:
print word,
fp.close()
Jump to Line
Something went wrong with that request. Please try again.