AT_abc462_a.Secret Numbers

入门

通过率:0%

时间限制:2.00s

内存限制:1024MB

AC君温馨提醒

该题目为【atcoder】题库的题目,您提交的代码将被提交至atcoder进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

You are given a string SS consisting of lowercase English letters and digits.

Extract only the digit characters from SS and output the string formed by arranging them in their original order.

给你一个由小写英文字母和数字组成的字符串 SS。

从 SS 中仅提取数字字符,并按其在原字符串中的顺序排列,输出所形成的字符串。

输入格式

The input is given from Standard Input in the following format:

SS

输入从标准输入中以如下格式给出:

SS

输出格式

Output the answer.

输出答案。

输入输出样例

  • 输入#1

    abc462

    输出#1

    462
  • 输入#2

    codequeen

    输出#2

  • 输入#3

    31415

    输出#3

    31415
  • 输入#4

    10plus2is12

    输出#4

    10212

说明/提示

Sample 1 Explanation:
The digits contained in abc462 are 4, 6, 2. Concatenating them in their original order gives 462. Thus, output 462.

Sample 2 Explanation:
codequeen contains no digits, so output the empty string.

Constraints

  • SS is a string of length between 11 and 5050, inclusive, consisting of lowercase English letters and digits.

样例 1 解释:
字符串 abc462 中包含的数字为 4、6、2。按其在原字符串中的顺序连接起来得到 462。因此输出 462。

样例 2 解释:
codequeen 中不包含任何数字,因此输出空字符串。

约束条件

  • SS 是一个长度在 11 到 5050(含)之间的字符串,仅由小写英文字母和数字组成。

输入解题思路,AI测评打分。不知道怎么写?

首页