1520_Switchtex

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

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

Pro.ID

1520

Title

Switch text

Title链接

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

AC

5

Submit

28

Ratio

17.86%

时间&空间限制

  • Time Limit: 2000/1000 MS (Java/Others)     Memory Limit: 65536/32768 K (Java/Others)
  • 描述

    The program must switch the text lines in a backward order and split them by the middle, processing the input lines in pairs. If an empty or blank line is found, it is considered as a line but it is not printed out to the output.

    输入

    The input will be a text file with text lines.

    输出

    Description

    The program must switch the text lines in a backward order and split them by the middle, processing the input lines in pairs. If an empty or blank line is found, it is considered as a line but it is not printed out to the output.

    Input

    The input will be a text file with text lines.

    Output

    Standard output with the switched and splitted lines.

    Sample Input

    This lines must be printed backwards and splitted in the middle.
    And each line too!
    hellow my friend
    how are you today
    i hope you're fine

    be cool, be nice.

    Sample Output

    hcae dnA!oot enil
    wkcab detnirp eb tsum senil sihT.elddim eht ni dettilps dna sdra
    y era wohyadot uo
    m wollehdneirf y
    oy epoh ienif er'u
    ,looc eb.ecin eb

    样例输入

    This lines must be printed backwards and splitted in the middle.
    And each line too!
    hellow my friend
    how are you today
    i hope you're fine

    be cool, be nice.

    样例输出

    hcae dnA!oot enil
    wkcab detnirp eb tsum senil sihT.elddim eht ni dettilps dna sdra
    y era wohyadot uo
    m wollehdneirf y
    oy epoh ienif er'u
    ,looc eb.ecin eb

    提示

    作者


    路过

    雷人

    握手

    鲜花

    鸡蛋

    最新评论

    返回顶部