题解 | #小乐乐改数字#
小乐乐改数字
https://www.nowcoder.com/practice/fcd30aac9c4f4028b23919a0c649824d
#include <iostream> using namespace std; int main() { int a; while(cin>>a) { int b=0,d=1; while(a) { b=b+(a%2)*d; a=a/10; d=d*10; } cout<<b<<endl; } return 0; }