题解 | #小乐乐改数字#
小乐乐改数字
https://www.nowcoder.com/practice/fcd30aac9c4f4028b23919a0c649824d
import java.util.Scanner; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); char[] m = in.next().toCharArray(); String m1=""; for(int i=0;i<m.length;i++){ String temp = ((int)(m[i])%2)+""; m1 = m1+temp; } System.out.println(Integer.parseInt(m1)); } }