← 返回 meta 的题目列表Smallest number constructed by odd digits
类型:online_judge
Given a positive integer, construct the smallest number using only the odd digits from it, and return that number. The input is guaranteed to have at least one odd digit. Input Format: A positive integer. Output Format: An integer representing the smallest number. Example: Input: 57382 Output: 135 Constraints: The number of digits in the input does not exceed 1000.
Example
Input
57382