import stringmyStr = "Doogsauumauipnt >)! Zov qatsfd!ovr!ieipt!fjlues >) Wiau brf zovr!tirfe!fbvprjtf uedhoidam copkt? Pmebsf jndlvdf bt!lfatt!ooe!spfuwbrf fnhioefrjnh copk- uhf ptiess!cbn!bf xhbtfvfr- j.f.- qhzsjct,!mbti,!euc/"myLst = []ctr = 0for myChar in myStr: ctr+=1 myLst.append(chr(ord(myChar)-(ctr%2)))print string.join(myLst,'')
string ConStr = null, str = "Doogsauumauipnt >)! Zov qatsfd!ovr!ieipt!fjlues >) Wiau brf zovr!tirfe!fbvprjtf uedhoidam copkt? Pmebsf jndlvdf bt!lfatt!ooe!spfuwbrf fnhioefrjnh copk- uhf ptiess!cbn!bf xhbtfvfr- j.f.- qhzsjct,!mbti,!euc/"; char[] chq = str.ToCharArray(); int ctr =0, chp = 0; foreach (Int32 cht in chq) { ctr++; chp = cht; if (ctr % 2 != 0) chp = cht - 1; ConStr += Convert.ToChar(chp); } MessageBox.Show(ConStr);
i think mahalaga lang naman from the employer is maintindihan yung decrypyed question.
Cover letter:Please include a detailed cover letter in your response, telling us about your technical background, a bit about your life history and interests, and answering the following question (you have to 'decrypt' it first =). If you can't decipher the question, please don't respond.Doogsauumauipnt >)! Zov qatsfd!ovr!ieipt!fjlues >) Wiau brf zovr!tirfe!fbvprjtf uedhoidam copkt? Pmebsf jndlvdf bt!lfatt!ooe!spfuwbrf fnhioefrjnh copk-uhf ptiess!cbn!bf xhbtfvfr- j.f.- qhzsjct,!mbti,!euc/We are looking forward to hearing from you!quote doon sa isang job site
text = "Doogsauumauipnt >)! Zov qatsfd!ovr!ieipt!fjlues >) Wiau brf zovr!tirfe!fbvprjtf uedhoidam copkt? Pmebsf jndlvdf bt!lfatt!ooe!spfuwbrf fnhioefrjnh copk- uhf ptiess!cbn!bf xhbtfvfr- j.f.- qhzsjct,!mbti,!euc/"len = Text.GetLength(text)For a = 1 To len Step 2 data1 = Text.GetSubText(text,a, 1) data1a = text.GetCharacterCode(data1) data1b = text.GetCharacter(data1a - 1) data2 = text.GetSubText(text, a+1, 1) data3 = Text.Append(data1b, data2) TextWindow.Write(data3)EndFor
inp = "g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc dmp. bmgle gr gl zw fylb gq glcddgagclr ylb rfyr'q ufw rfgq rcvr gq qm jmle. sqgle qrpgle.kyicrpylq() gq pcamkkclbcb. lmu ynnjw ml rfc spj."out = ""for a in inp: if a <>' ': out = out + chr(ord('a') + ( ord(a) - ord('a') + 2) % 26) else: out = out + aprint out#solution 2##import stringtable1 = 'yzabcdefghijklmnopqrstuvwx 'table2 = 'abcdefghijklmnopqrstuvwxyz 't = string.maketrans(table1, table2)print inp.translate(t)
import stringtranslationtable=string.maketrans(string.ascii_lowercase,string.ascii_lowercase[2:]+'ab')print "g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc dmp. bmgle gr gl zw fylb gq glcddgagclr ylb rfyr'q ufw rfgq rcvr gq qm jmle. sqgle qrpgle.kyicrpylq() gq pcamkkclbcb. lmu ynnjw ml rfc spj.".translate(translationtable)