21401_SubstitutionCypher

2022-5-16 18:19| 发布者: Hocassian| 查看: 44| 评论: 0|原作者: 肇庆学院ACM合集

摘要:
C:\Users\Administrator\Downloads\2019-10-12-10-14-4-89505233997299-Problem List-采集的数据-后羿采集器.html

Pro.ID

21401

Title

Substitution Cypher

Title链接

http://10.20.2.8/oj/exercise/problem?problem_id=21401

AC

56

Submit

140

Ratio

40.00%

时间&空间限制

  • Time Limit: 400/200 MS (Java/Others)     Memory Limit: 65536/65536 K (Java/Others)
  • 描述

    Substitution cyphers are the simplest of cyphers where the letters of one alphabet are substituted for the letters of another alphabet. In one form or another, they've been in use for over 2000 years.

    输入

    A line containing the plaintext alphabet

    A line containing the substitution alphabet

    Several lines of text

    输出

    Description

    Substitution cyphers are the simplest of cyphers where the letters of one alphabet are substituted for the letters of another alphabet. In one form or another, they've been in use for over 2000 years.

    Input

    A line containing the plaintext alphabet

    A line containing the substitution alphabet

    Several lines of text

    Output

    A line containing the substitution alphabet

    A line containing the plaintext alphabet

    The converted lines of text

    Please note: All lines will be at most 64 characters, plus a trailing end-of-line character. Pass through all characters not found in the plaintext alphabet.

    Sample Input

    abcdefghijklmnopqrstuvwxyz
    zyxwvutsrqponmlkjihgfedcba
    Shar's Birthday:
    The birthday is October 6th, but the party will be Saturday,
    October 5.  It's my 24th birthday and the first one in some
    years for which I've been employed.  Plus, I have new clothes.
    So I have cause to celebrate.  More importantly, though,
    we've cleaned the house!  The address is 506-D Albert Street.
    Extra enticement for CS geeks:  there are several systems in
    the house, and the party is conveniently scheduled for 3 hours
    after the second CSC programming contest ends (not to mention,
    within easy walking distance)!

    Sample Output

    zyxwvutsrqponmlkjihgfedcba
    abcdefghijklmnopqrstuvwxyz
    Sszi'h Brigswzb:
    Tsv yrigswzb rh Oxglyvi 6gs, yfg gsv kzigb droo yv Szgfiwzb,
    Oxglyvi 5.  Ig'h nb 24gs yrigswzb zmw gsv urihg lmv rm hlnv
    bvzih uli dsrxs I'ev yvvm vnkolbvw.  Pofh, I szev mvd xolgsvh.
    Sl I szev xzfhv gl xvovyizgv.  Mliv rnkligzmgob, gslfts,
    dv'ev xovzmvw gsv slfhv!  Tsv zwwivhh rh 506-D Aoyvig Sgivvg.
    Ecgiz vmgrxvnvmg uli CS tvvph:  gsviv ziv hvevizo hbhgvnh rm
    gsv slfhv, zmw gsv kzigb rh xlmevmrvmgob hxsvwfovw uli 3 slfih
    zugvi gsv hvxlmw CSC kiltiznnrmt xlmgvhg vmwh (mlg gl nvmgrlm,
    drgsrm vzhb dzoprmt wrhgzmxv)!

    Source

    样例输入

    abcdefghijklmnopqrstuvwxyz
    zyxwvutsrqponmlkjihgfedcba
    Shar's Birthday:
    The birthday is October 6th, but the party will be Saturday,
    October 5.  It's my 24th birthday and the first one in some
    years for which I've been employed.  Plus, I have new clothes.
    So I have cause to celebrate.  More importantly, though,
    we've cleaned the house!  The address is 506-D Albert Street.
    Extra enticement for CS geeks:  there are several systems in
    the house, and the party is conveniently scheduled for 3 hours
    after the second CSC programming contest ends (not to mention,
    within easy walking distance)!

    样例输出

    zyxwvutsrqponmlkjihgfedcba
    abcdefghijklmnopqrstuvwxyz
    Sszi'h Brigswzb:
    Tsv yrigswzb rh Oxglyvi 6gs, yfg gsv kzigb droo yv Szgfiwzb,
    Oxglyvi 5.  Ig'h nb 24gs yrigswzb zmw gsv urihg lmv rm hlnv
    bvzih uli dsrxs I'ev yvvm vnkolbvw.  Pofh, I szev mvd xolgsvh.
    Sl I szev xzfhv gl xvovyizgv.  Mliv rnkligzmgob, gslfts,
    dv'ev xovzmvw gsv slfhv!  Tsv zwwivhh rh 506-D Aoyvig Sgivvg.
    Ecgiz vmgrxvnvmg uli CS tvvph:  gsviv ziv hvevizo hbhgvnh rm
    gsv slfhv, zmw gsv kzigb rh xlmevmrvmgob hxsvwfovw uli 3 slfih
    zugvi gsv hvxlmw CSC kiltiznnrmt xlmgvhg vmwh (mlg gl nvmgrlm,
    drgsrm vzhb dzoprmt wrhgzmxv)!

    作者


    路过

    雷人

    握手

    鲜花

    鸡蛋

    最新评论

    返回顶部