题解 | #小乐乐改数字#
小乐乐改数字
http://www.nowcoder.com/practice/fcd30aac9c4f4028b23919a0c649824d
```import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
StringBuilder strBuilder = new StringBuilder();
while(num > 0){
strBuilder.append((num % 10 % 2) == 0 ? 0 : 1);
num /= 10;
}
int res = Integer.parseInt(strBuilder.reverse().toString());
System.out.println(res);
}
}