22702_AT-sequence

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

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

Pro.ID

22702

Title

AT - sequence

Title链接

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

AC

0

Submit

0

Ratio

-

时间&空间限制

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

    AT-sequences are command strings used to control modems. An AT-sequence is a string of no more than 500 characters consisting of the prefix 'AT' followed by some commands immediately one after another without any separators. Here is a simplified description of the modem commands.

    Each command consists of a header and an optional numeric value (non-negative integer containing no more than 4 digits). If there is a value in the command, it is separated from the header by the character '='.

    The header itself also consists of two parts. The first, mandatory, part of a header has one of the following forms:

    • one or two upper-case Latin letters;

    • one of the symbols '&', '#', '@', followed by one upper-case Latin letter.

    The second, optional part of a header is a non-negative integer containing no more than 20 digits.

    Spaces are not allowed in the command notation. If the command notation contains only one or two Latin letters, this command can't precede another one with the notation started by a letter.

    The task is to determine all commands included in the structure of a correct AT-sequence.

    输入

    Input data contains one line with the source AT-sequence.

    输出

    Description

    AT-sequences are command strings used to control modems. An AT-sequence is a string of no more than 500 characters consisting of the prefix 'AT' followed by some commands immediately one after another without any separators. Here is a simplified description of the modem commands.

    Each command consists of a header and an optional numeric value (non-negative integer containing no more than 4 digits). If there is a value in the command, it is separated from the header by the character '='.

    The header itself also consists of two parts. The first, mandatory, part of a header has one of the following forms:

    • one or two upper-case Latin letters;

    • one of the symbols '&', '#', '@', followed by one upper-case Latin letter.

    The second, optional part of a header is a non-negative integer containing no more than 20 digits.

    Spaces are not allowed in the command notation. If the command notation contains only one or two Latin letters, this command can't precede another one with the notation started by a letter.

    The task is to determine all commands included in the structure of a correct AT-sequence.

    Input

    Input data contains one line with the source AT-sequence.

    Output

    Each line of the output data contains one command from the AT-sequence given in the input file. The commands must be listed in the same order as in the AT-sequence. If AT-sequence have no commands you must generate an empty file.

    Sample Input

    ATDP2934564&H0S0=4

    Sample Output

    DP2934564
    &H0
    S0=4

    Source

    样例输入

    ATDP2934564&H0S0=4

    样例输出

    DP2934564
    &H0
    S0=4

    作者


    路过

    雷人

    握手

    鲜花

    鸡蛋

    最新评论

    返回顶部