CodeQUEEN 2026 予選 (AtCoder Beginner Contest 462)
A
秘密数字
Secret Numbers
AtCoder
⌀ 0
原题
←D →

秘密数字AI (CI翻译)

Problem Statement

题目描述

AI (CI翻译)

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

给定一个由小写英文字母和数字组成的字符串 $S$。AI (CI翻译)

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

从 $S$ 中提取所有数字字符,并按照它们在原字符串中的顺序组成字符串后输出。AI (CI翻译)

Constraints

约束条件

AI (CI翻译)
  • $S$ is a string of length between $1$ and $50$, inclusive, consisting of lowercase English letters and digits.
  • $S$ 的长度在 $1$ 到 $50$ 之间(包含两端),且由小写英文字母和数字组成。
AI (CI翻译)

Input

输入格式

AI (CI翻译)

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

输入从标准输入按以下格式给出:AI (CI翻译)

S

S
AI (CI翻译)

Output

输出格式

AI (CI翻译)

Output the answer.

输出答案。AI (CI翻译)

样例

Input #1
abc462
Output #1
462
The digits contained in `abc462` are `4`, `6`, `2`. Concatenating them in their original order gives `462`. Thus, output `462`.
Input #2
codequeen
Output #2

`codequeen` contains no digits, so output the empty string.
Input #3
31415
Output #3
31415
Input #4
10plus2is12
Output #4
10212
题目信息
题号
abc462_a
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(gpt-6.1-sol),如有出入请以原文为准。